code: def register_info(
      name: str,
  ) -> Callable[
      [Callable[[], Dict[str, Any]]], Callable[[], Dict[str, Any]]
  ]:
      def wrapper(
          fn: Callable[[], Dict[str, Any]]
      ) -> Callable[[], Dict[str, Any]]:
          BUILTIN_INFOS[name] = fn()
          return fn
  
      return wrapper
  
file_path: vision/torchvision/prototype/datasets/_api.py
imports: import pathlib
  from typing import Any, Callable, Dict, List, Optional, Type, TypeVar, Union
  from torchvision.prototype.datasets import home
  from torchvision.prototype.datasets.utils import Dataset
  from torchvision.prototype.utils._internal import add_suggestion
label_desc: Use image node_id 1 for calling a global function with example usage: register_info(name) and returns: wrapper, fn