code: def _create_projects_file(project_name, data_source, items):
      
  
      repositories = []
      for item in items:
          if item['origin'] not in repositories:
              repositories.append(item['origin'])
      projects = {
          project_name: {
              data_source: repositories
          }
      }
  
      projects_file, projects_file_path = tempfile.mkstemp(prefix='track_items_')
  
      with open(projects_file_path, "w") as pfile:
          json.dump(projects, pfile, indent=True)
  
      return projects_file_path
docs: Create a projects file from the items origin data