code: def _extra_args_to_dict(extra_args: str) -> Dict[str, Any]:
      """Parses comma-separated list of flag_name=flag_value to dict."""
      args_dict = {}
      if extra_args is None:
          return args_dict
      for extra_arg in extra_args.split(","):
          (flag_name, flag_value) = extra_arg.split("=")
          flag_name = flag_name.strip("-")
          # Check for boolean values.
          if flag_value.lower() == "true":
              flag_value = True
          elif flag_value.lower() == "false":
              flag_value = False
          args_dict[flag_name] = flag_value
      return args_dict
  
imports: import os
  import subprocess
  import sys
  import tempfile
  from typing import Any, Dict, Optional, Tuple
  from absl import app
  from absl import flags
  from absl import logging
  import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: _extra_args_to_dict(extra_args) and returns: args_dict, args_dict