docs: def named_function(name):
      """Gets a fully named module-global object."""
      name_parts = name.split('.')
      module = named_object('.'.join(name_parts[:-1]))
      func = getattr(module, name_parts[-1])
      if hasattr(func, 'original_func'):
          func = func.original_func
      return func