code: def save_list(lst, path):
      
  
      with open(path, 'wb') as out:
          lines = []
          for item in lst:
              if isinstance(item, (six.text_type, six.binary_type)):
                  lines.append(make_str(item))
              else:
                  lines.append(make_str(json.dumps(item)))
          out.write(b'\n'.join(lines) + b'\n')
docs: Save items from list to the file.