code: def list(
      self, project_name: Optional[str], repo_id: Optional[str]
  ) -> List[Run]:
      body = ListRunsRequest(project_name=project_name, repo_id=repo_id)
      resp = self._request(f"/api/runs/list", body=body.json())
      return parse_obj_as(List[Run], resp.json())
  
file_path: dstack/src/dstack/api/server/_runs.py
imports: from typing import List, Optional
  from pydantic import parse_obj_as
  from dstack._internal.core.models.runs import Run, RunPlan, RunSpec
  from dstack._internal.server.schemas.runs import DeleteRunsRequest, GetRunPlanRequest, GetRunRequest, ListRunsRequest, StopRunsRequest
  from dstack.api.server._group import APIClientGroup
label_desc: Use image node_id 1 for calling the RunsAPIClient obj's underlying member method code with example usage: obj.list(project_name, repo_id) and returns: parse_obj_as