For the custom expectation do we need to register the expectation

for the validation framework i’m try to validate the data using the custom expectation by creating the seperate the custom expectation .py file and i’m trying to importing the expectation from there, for the validation, i’m stuck to use the custom expectation.

from great_expectations.expectations.registry import register_expectation
from custom_expectations.ExpectColumnValuesToBeUppercase import ExpectColumnValuesToBeUppercase

-Register custom expectation

register_expectation(ExpectColumnValuesToBeUppercase)

import streamlit as st
import pandas as pd
import sqlite3
from sqlalchemy import create_engine, inspect
import great_expectations as gx
import os
import pyodbc
from great_expectations.core import ExpectationConfiguration
from great_expectations.core.batch import RuntimeBatchRequest
import json
import streamlit.components.v1 as components
from great_expectations.validator.validator import Validator
from great_expectations.execution_engine import PandasExecutionEngine
from great_expectations.data_context.types.base import DatasourceConfig
from great_expectations.datasource.data_connector import RuntimeDataConnector

what is approach to fix this, i followed the docs, can any one help me to fix this custom expectation, if you already know about this,
share me the steps to create custom expectation to validate in framework steps, this will help me to cross check with my custom expectation steps

i am trying to use this custom expectation, before that i am registering the expectation, using this code
[
from custom_expectations.ExpectColumnValuesToBeUppercase import ExpectColumnValuesToBeUppercase

from great_expectations.expectations.registry import register_expectation
register_expectation(ExpectColumnValuesToBeUppercase)
from great_expectations.expectations.registry import list_registered_expectation_implementations

print(“Registered expectations:”, list_registered_expectation_implementations())
]
i have taken this custom expectation for an example, once i run the above code, i can’t able to see my custom expectation on the registry,

this process is correct or not to use the custom expectation, let me know if any one know about this?

Which version of great-expectation are you using it?