(func, block, func_ir, prefix=None, name=None)
return import_object(func_name, module_name, block, func_ir, prefix=prefix, name=name)
Creates variable and imports function. Assign created variable to the function
Creates variable and imports function. Assign created variable to the function
Creates variable and imports function . Assign created variable to the function
def import_function(func, block, func_ir, prefix=None, name=None):
    """
    Creates variable and imports function. Assign created variable to the function
    """

    assert isinstance(func, (FunctionType, _Intrinsic))

    if isinstance(func, _Intrinsic):
        func = func._defn

    func_name = func.__name__
    module_name = func.__module__

    return import_object(func_name, module_name, block, func_ir, prefix=prefix, name=name)
def import_function ( func , block , func_ir , prefix = None , name = None ) : assert isinstance ( func , ( FunctionType , _Intrinsic ) ) if isinstance ( func , _Intrinsic ) : func = func . _defn func_name = func . __name__ module_name = func . __module__ return import_object ( func_name , module_name , block , func_ir , prefix = prefix , name = name )