code: def replace(file: str, find: str, replace: str) -> None:
      new_lines = []
      with open(file) as f:
          for line in f.readlines():
              line = line.replace(find, replace)
              new_lines += [line]
  
      # Empty file
      with open(file, "w") as f:
          f.write("")
  
      # Save file with new lines
      with open(file, "a") as f:
          for line in new_lines:
              f.write(line)
  
label_desc: Use image node_id 1 for calling a global function with example usage: replace(file, find, replace) without return types