code: def project_to_json(project: Project) -> Dict[str, Any]:
      """Convert a Project to a bindings-style to_json dict."""
      return {
          "archived": project.archived,
          "description": project.description,
          "id": project.id,
          "name": project.name,
          "notes": project.notes,
          "numActiveExperiments": project.n_active_experiments,
          "numExperiments": project.n_experiments,
          "workspaceId": project.workspace_id,
          "username": project.username,
      }
  
imports: import csv
  import inspect
  import json
  import os
  import pathlib
  import sys
  from datetime import timezone
  from typing import Any, Dict, Iterable, List, Optional, Sequence, TextIO, Union
  import dateutil.parser
  import tabulate
  import termcolor
  from determined import util
  from determined.common import util
  from determined.experimental import Model, Project
label_desc: Use image node_id 17 for calling a global function with example usage: project_to_json(project) and returns: dict