code: def write_to_txt(cleaned_models, filename):
      """
      Function to write the contents of a list to a text file
      :param cleaned_models: list of cleaned models
      :param filename: name of the text file
      """
      with open(filename, "w") as f:
          for item in cleaned_models:
              f.write("%s\n" % item)
  
imports: import requests
  from urllib.parse import urlparse, parse_qs
label_desc: Use image node_id 4 for calling a global function with example usage: write_to_txt(cleaned_models, filename) without return types