code: def _is_pytorch_action(action):
      try:
          return (
              hasattr(action.type, "__module__")
              and "pytorch" in action.type.__module__
          )
      except KeyError:
          return False
  
file_path: guildai/guild/plugins/pytorch_flags.py
imports: import logging
  from .import_argparse_flags_main import ArgparseActionFlagsImporter
  from .import_argparse_flags_main import default_flag_attrs_for_argparse_action
label_desc: Use image node_id 1 for calling a global function with example usage: _is_pytorch_action(action) and returns: unknown, False