code: def _flag_type_for_action(
      action_type, flag_name, ignore_unknown_type
  ):
      if action_type is str:
          return "string"
      if action_type is float:
          return "float"
      if action_type is int:
          return "int"
      if action_type is bool:
          return "boolean"
      if not ignore_unknown_type:
          log.warning(
              "unsupported flag type %s for flag %s - ignoring type setting",
              action_type,
              flag_name,
          )
      return None
  
imports: import argparse
  import json
  import logging
  import sys
  from guild import entry_point_util
  from guild import flag_util
  from guild import log
  from guild import python_util
  from guild import util
label_desc: Use image node_id 13 for calling a global function with example usage: _flag_type_for_action(action_type, flag_name, ignore_unknown_type) and returns: None, str, str, str, str