code: def _(lib: Library, name, dispatch_key=""):
      """Legacy torch.library.impl API. Kept around for BC"""
  
      def wrap(f):
          lib.impl(name, f, dispatch_key)
          return f
  
      return wrap
  
imports: from ._ops import OpOverload
  from typing import Any, Optional, Set, List
  import traceback
  import torch
  import weakref
  import functools
  import inspect
  import re
  import sys
label_desc: Use image node_id 7 for calling a global function with example usage: _(lib, name, dispatch_key) and returns: wrap, f