code: def hocon_quote_key(a_obj):
      """Recursively quote key with '.' to \"key\" """
      if isinstance(a_obj, list):
          return [hocon_quote_key(a) for a in a_obj]
      elif isinstance(a_obj, tuple):
          return tuple(hocon_quote_key(a) for a in a_obj)
      elif not isinstance(a_obj, dict):
          return a_obj
  
      # preserve dict type
      a_dict = a_obj
      new_dict = type(a_dict)()
      for k, v in a_dict.items():
          if isinstance(k, str) and "." in k:
              new_dict['"{}"'.format(k)] = hocon_quote_key(v)
          else:
              new_dict[k] = hocon_quote_key(v)
      return new_dict
  
imports: from typing import Optional, Any
label_desc: Use image node_id 2 for calling a global function with example usage: hocon_quote_key(a_obj) and returns: new_dict, unknown, tuple, a_obj