class_docstr: Determined gives access to Determined API objects.
  
  Arguments:
      master (string, optional): The URL of the Determined master. If
          this argument is not specified, the environment variables ``DET_MASTER`` and
          ``DET_MASTER_ADDR`` will be checked for the master URL in that order.
      user (string, optional): The Determined username used for
          authentication. (default: ``determined``)
docstr: Get a list of experiments (:class:`~determined.experimental.Experiment`).
  
  Arguments:
      sort_by: Which field to sort by. See
          :class:`~determined.experimental.ExperimentSortBy`.
      order_by: Whether to sort in ascending or descending order. See
          :class:`~determined.experimental.OrderBy`.
      name: If this parameter is set, experiments will be filtered to only include those
          with names matching this parameter.
      experiment_ids: Only return experiments with these IDs.
      labels: Only return experiments with a label in this list.
      users: Only return experiments belonging to these users. Defaults to all users.
      states: Only return experiments that are in these states.
      project_id: Only return experiments associated with this project ID.
  
  Returns:
      A list of experiments.
docstr_tok: ["Get","a","list","of","experiments","(",":","class",":","`","~determined.experimental.Experiment","`",")",".","Arguments",":","sort_by",":","Which","field","to","sort","by",".","See",":","class",":","`","~determined.experimental.ExperimentSortBy","`",".","order_by",":","Whether","to","sort","in","ascending","or","descending","order",".","See",":","class",":","`","~determined.experimental.OrderBy","`",".","name",":","If","this","parameter","is","set",",","experiments","will","be","filtered","to","only","include","those","with","names","matching","this","parameter",".","experiment_ids",":","Only","return","experiments","with","these","IDs",".","labels",":","Only","return","experiments","with","a","label","in","this","list",".","users",":","Only","return","experiments","belonging","to","these","users",".","Defaults","to","all","users",".","states",":","Only","return","experiments","that","are","in","these","states",".","project_id",":","Only","return","experiments","associated","with","this","project","ID",".","Returns",":","A","list","of","experiments","."]
code: def list_experiments(
      self,
      sort_by: Optional[experiment.ExperimentSortBy] = None,
      order_by: Optional[OrderBy] = None,
      experiment_ids: Optional[List[int]] = None,
      labels: Optional[List[str]] = None,
      users: Optional[List[str]] = None,
      states: Optional[List[experiment.ExperimentState]] = None,
      name: Optional[str] = None,
      project_id: Optional[int] = None,
  ) -> List[experiment.Experiment]:
      """Get a list of experiments (:class:`~determined.experimental.Experiment`).
  
      Arguments:
          sort_by: Which field to sort by. See
              :class:`~determined.experimental.ExperimentSortBy`.
          order_by: Whether to sort in ascending or descending order. See
              :class:`~determined.experimental.OrderBy`.
          name: If this parameter is set, experiments will be filtered to only include those
              with names matching this parameter.
          experiment_ids: Only return experiments with these IDs.
          labels: Only return experiments with a label in this list.
          users: Only return experiments belonging to these users. Defaults to all users.
          states: Only return experiments that are in these states.
          project_id: Only return experiments associated with this project ID.
  
      Returns:
          A list of experiments.
      """
  
      def get_with_offset(
          offset: int,
      ) -> bindings.v1GetExperimentsResponse:
          return bindings.get_GetExperiments(
              session=self._session,
              sortBy=sort_by and sort_by._to_bindings() or None,
              orderBy=order_by and order_by._to_bindings() or None,
              archived=None,
              description=None,
              labels=labels,
              experimentIdFilter_incl=experiment_ids,
              offset=offset,
              limit=None,
              name=name,
              states=[state._to_bindings() for state in states]
              if states
              else None,
              users=users,
              projectId=project_id,
          )
  
      bindings_exps: Iterable[
          bindings.v1Experiment
      ] = itertools.chain.from_iterable(
          r.experiments for r in api.read_paginated(get_with_offset)
      )
      return [
          experiment.Experiment._from_bindings(b, self._session)
          for b in bindings_exps
      ]
  
imports: import itertools
  import logging
  import pathlib
  import warnings
  from typing import Any, Dict, Iterable, List, Optional, Sequence, Union
  import determined
  from determined.common import api, context, util
  from determined.common.api import authentication, bindings, certs, errors
  from determined.common.experimental import checkpoint, experiment, metrics, model, oauth2_scim_client, trial, user, workspace
  from determined.common.experimental._util import OrderBy
label_desc: Use image node_id 12 for calling the Determined obj's underlying member method code with example usage: obj.list_experiments(sort_by, order_by, experiment_ids, labels, users, states, name, project_id) and returns: unknown, bindings