code: def dict2native(dict_val):
      result = {}
  
      if not isinstance(dict_val, dict):
          return dict_val
  
      for k, v in dict_val.items():
          result[k] = v
          if v == "True":
              result[k] = True
              continue
          if v == "False":
              result[k] = False
              continue
          if v == "None":
              result[k] = None
              continue
          if isinstance(v, bool):
              continue
  
          try:
              result[k] = int(v)
              continue
          except Exception:
              logger.info("Value is not int")
  
          try:
              result[k] = float(v)
              continue
          except Exception:
              logger.info("Value is not float")
  
      return result
  
imports: import logging
  from django.db import connection
label_desc: Use image node_id 4 for calling a global function with example usage: dict2native(dict_val) and returns: result, dict_val