code: def _node_matches_argspec(node, func):
      """Returns True is node fits the argspec of func."""
      # TODO(mdan): Use just inspect once support for Python 2 is dropped.
      arg_spec = inspect.getfullargspec(func)
  
      node_args = tuple(_arg_name(arg) for arg in node.args.args)
      if node_args != tuple(arg_spec.args):
          return False
  
      if arg_spec.varargs != _arg_name(node.args.vararg):
          return False
  
      if arg_spec.varkw != _arg_name(node.args.kwarg):
          return False
  
      node_kwonlyargs = tuple(
          _arg_name(arg) for arg in node.args.kwonlyargs
      )
      if node_kwonlyargs != tuple(arg_spec.kwonlyargs):
          return False
  
      return True
  
imports: import ast
  import inspect
  import linecache
  import re
  import sys
  import textwrap
  import tokenize
  import astunparse
  import gast
  import six
  from nvidia.dali._autograph.pyct import errors
  from nvidia.dali._autograph.pyct import inspect_utils
label_desc: Use image node_id 6 for calling a global function with example usage: _node_matches_argspec(node, func) and returns: True, False, False, False, False