code: def make_stubs_for_overloads(overload_info):
      overload_stubs = []
      for orig_fn, overloads in overload_info.items():
          orig_ast = get_jit_def(
              orig_fn,
              orig_fn.__name__,
              self_name="RecursiveScriptModule",
          )
          for overload_name, overload_fn in overloads:
              _check_no_signature(overload_fn)
              over_ast = get_jit_def(
                  overload_fn,
                  overload_fn.__name__,
                  self_name="RecursiveScriptModule",
              )
              new_ast = torch._C._replace_overloaded_method_decl(
                  over_ast.decl(), orig_ast, overload_name
              )
              _rcb = _jit_internal.createResolutionCallbackFromClosure(
                  orig_fn
              )
              overload_stubs.append(
                  ScriptMethodStub(_rcb, new_ast, overload_fn)
              )
      return overload_stubs
  
imports: import collections
  import functools
  import inspect
  import sys
  import textwrap
  import types
  import warnings
  from typing import Dict, List, Set, Type
  import torch
  import torch._jit_internal
  from torch._sources import fake_range
  from torch.jit._builtins import _find_builtin
  from torch.jit._check import AttributeTypeIsSupportedChecker
  from torch.jit._state import _add_script_class, _get_script_class, _python_cu
  from torch.jit.frontend import get_class_properties, get_default_args, get_jit_class_def, get_jit_def
  from torch.nn import Module
label_desc: Use image node_id 20 for calling a global function with example usage: make_stubs_for_overloads(overload_info) and returns: overload_stubs