(*args, func_name: str = None, **kwargs)
return func_obj(*args, **kwargs)
Finds the python object with the given name and calls it as a function.
Finds the python object with the given name and calls it as a function.
Finds the python object with the given name and calls it as a function .
def call_func_by_name(*args, func_name: str = None, **kwargs) -> Any:
    """Finds the python object with the given name and calls it as a function."""
    assert func_name is not None
    func_obj = get_obj_by_name(func_name)
    assert callable(func_obj)
    return func_obj(*args, **kwargs)
def call_func_by_name ( * args , func_name : str = None , * * kwargs ) -> Any : assert func_name is not None func_obj = get_obj_by_name ( func_name ) assert callable ( func_obj ) return func_obj ( * args , * * kwargs )