code: def has_arg(node, arg):
      """Checks if the call has the given argument.
  
      Args:
          node (ast.Call): a node that represents a function call. For more,
              see https://docs.python.org/3/library/ast.html#abstract-grammar.
          arg (str): the name of the argument.
  
      Returns:
          bool: if the node has the given argument.
      """
      try:
          return parsing.arg_value(node, arg) is not None
      except KeyError:
          return False
  
file_path: sagemaker-python-sdk/src/sagemaker/cli/compatibility/v2/modifiers/matching.py
imports: from __future__ import absolute_import
  import ast
  from sagemaker.cli.compatibility.v2.modifiers import parsing
label_desc: Use image node_id 6 for calling a global function with example usage: has_arg(node, arg) and returns: unknown, False