code: def change_args_to_dict(string):
      if string is None:
          return None
      ans = []
      strings = string.split("\n")
      ind = 1
      start = 0
      while ind <= len(strings):
          if ind < len(strings) and strings[ind].startswith(" "):
              ind += 1
          else:
              if start < ind:
                  ans.append("\n".join(strings[start:ind]))
              start = ind
              ind += 1
      d = {}
      for line in ans:
          if (
              (":" in line)
              and (line.count(":") == 1)
              and (len(line) > 0)
          ):
              lines = line.split(":")
              d[lines[0]] = lines[1].strip()
          elif (
              (":" in line)
              and (line.count(":") > 1)
              and (len(line) > 0)
          ):
              lines = line.split(":")
              keyname = lines[0]
              val = ":".join(lines[1:])
              d[keyname] = val
      return d
  
file_path: imagededup/mkdocs/autogen.py
imports: import ast
  import os
  import re
label_desc: Use image node_id 2 for calling a global function with example usage: change_args_to_dict(string) and returns: d, None