human
Complete this python program:
def core_helper(f, name=None):
assistant
#Here is the Python code you requested.

    """Register a function as a builtin helper method.
    """
    def _get_name(func_or_class):
        try:
            return func_or_class.__name__
        except AttributeError:
            return func_or_class.__class__.__name__
    _builtin_functions[(name or _get_name(f))] = f
    return f