code: def get_matching_signature(method, trees):
      sig = inspect.signature(method)
      for tree in trees:
          for item in tree.body:
              if not isinstance(item, ast.FunctionDef):
                  continue
              if item.name == method.__name__:
                  return update_sig_from_node(item, sig)
      # The following methods are implemented outside of the mro of Axes
      # and thus do not get their annotated versions found with current code
      #     stackplot
      #     streamplot
      #     table
      #     tricontour
      #     tricontourf
      #     tripcolor
      #     triplot
  
      # import warnings
      # warnings.warn(f"'{method.__name__}' not found")
      return sig
  
imports: import ast
  from enum import Enum
  import functools
  import inspect
  from inspect import Parameter
  from pathlib import Path
  import sys
  import subprocess
  import numpy
  from matplotlib import _api, mlab
  from matplotlib.axes import Axes
  from matplotlib.backend_bases import MouseButton
  from matplotlib.figure import Figure
label_desc: Use image node_id 7 for calling a global function with example usage: get_matching_signature(method, trees) and returns: sig, update_sig_from_node