(cls, type_name, factory_func)
Registers an expression factory function for the given type_name.
        Use this method to add additional expression types to UCR.
Registers an expression factory function for the given type_name.
        Use this method to add additional expression types to UCR.
Registers an expression factory function for the given type_name . Use this method to add additional expression types to UCR .
def register(cls, type_name, factory_func):
        """
        Registers an expression factory function for the given type_name.
        Use this method to add additional expression types to UCR.
        """
        if type_name in cls.spec_map:
            raise ValueError(
                "Expression factory function already "
                "registered for type '{}'!".format(type_name)
            )

        cls.spec_map[type_name] = factory_func
def register ( cls , type_name , factory_func ) : if type_name in cls . spec_map : raise ValueError ( "Expression factory function already " "registered for type '{}'!" . format ( type_name ) ) cls . spec_map [ type_name ] = factory_func