code: def _parse_attribute(value):
      try:
          return int(value)
      except:
          pass
  
      try:
          return float(value)
      except:
          pass
  
      if etau.is_str(value):
          if value in ("True", "true"):
              return True
  
          if value in ("False", "false"):
              return False
  
          if value in ("None", ""):
              return None
  
      return value
  
imports: import logging
  import os
  import jinja2
  import eta.core.utils
  import fiftyone.constants
  import fiftyone.core.labels
  import fiftyone.core.metadata
  import fiftyone.core.storage
  import fiftyone.core.utils
  import fiftyone.utils.data
label_desc: Use image node_id 4 for calling a global function with example usage: _parse_attribute(value) and returns: value, int, float, True, False, None