original_docstring: write list of strings to file as lines
      
      Args:
          path (str): local file path
          text_set (set[str]): list of strings to write
      
      Returns:
          path (str): sanitized local file path
      
docstring: write list of strings to file as lines
docstring_tokens: write list of strings to file as lines
code: def write_url_list(path, text_set):
      """write list of strings to file as lines
      
      Args:
          path (str): local file path
          text_set (set[str]): list of strings to write
      
      Returns:
          path (str): sanitized local file path
      """
      assert isinstance(text_set, (tuple, list, set)), "write_url_list: text_set is not an iterable."
      assert isinstance(path, str), "write_url_list: path is not a string." 
  
      path = pathvalidate.sanitize_filepath(path, platform='universal')
  
      directory = os.path.dirname(path)
      if not os.path.exists(directory):
          os.makedirs(directory)
  
      with open(path, 'w') as wf:
          for s in text_set:
              wf.write(s +'\n')
  
      return path
code_tokens: def write_url_list ( path , text_set ) : assert isinstance ( text_set , ( tuple , list , set ) ) , "write_url_list: text_set is not an iterable." assert isinstance ( path , str ) , "write_url_list: path is not a string." path = pathvalidate . sanitize_filepath ( path , platform = 'universal' ) directory = os . path . dirname ( path ) if not os . path . exists ( directory ) : os . makedirs ( directory ) with open ( path , 'w' ) as wf : for s in text_set : wf . write ( s + '\n' ) return path
short_docstring: write list of strings to file as lines
short_docstring_tokens: write list of strings to file as lines
comment: """write list of strings to file as lines
      
      Args:
          path (str): local file path
          text_set (set[str]): list of strings to write
      
      Returns:
          path (str): sanitized local file path
      """