code: def inline_dict(obj: dict) -> str:
      arr = []
      for k, v in obj.items():
          if str(v) in list(dtype.__dict__.keys()):
              v = f"'{v}'"
          k = k.replace("'", "\\'").replace('"', '\\"')
          arr.append(f"""'{k}': {v}""")
  
      dict_code = "{\n" + ",\n".join(arr) + "\n}"
      return dict_code
  
file_path: lightwood/lightwood/helpers/templating.py
imports: from typing import Callable
  from collections import deque
  import inspect
  import numpy
  from type_infer.dtype import dtype
label_desc: Use image node_id 3 for calling a global function with example usage: inline_dict(obj) and returns: dict_code