code: def register_meta(op_name, overload_name="default"):
      def wrapper(fn):
          if torchvision.extension._has_ops():
              get_meta_lib().impl(
                  getattr(
                      getattr(torch.ops.torchvision, op_name),
                      overload_name,
                  ),
                  fn,
              )
          return fn
  
      return wrapper
  
file_path: vision/torchvision/_meta_registrations.py
imports: import functools
  import torch
  import torch._custom_ops
  import torch.library
  import torchvision.extension
label_desc: Use image node_id 2 for calling a global function with example usage: register_meta(op_name, overload_name) and returns: wrapper, fn