code: def login(
      master: Optional[str] = None,
      user: Optional[str] = None,
      password: Optional[str] = None,
      cert_path: Optional[str] = None,
      cert_name: Optional[str] = None,
      noverify: bool = False,
  ) -> None:
      """
      ``login()`` will configure the default Determined() singleton used by all of the other functions
      in the client module.
  
      It is often unnecessary to call ``login()``.  If you have configured your environment so that
      the Determined CLI works without any extra arguments or environment variables, you should not
      have to call ``login()`` at all.
  
      If you do need to call ``login()``, it must be called before any calling any other functions
      from this module, otherwise it will fail.
  
      If you have reason to connect to multiple masters, you should use explicit
      :class:`~determined.experimental.client.Determined` objects instead.  Each explicit
      :class:`~determined.experimental.client.Determined` object accepts the same parameters as
      ``login()``, and offers the same functions as what are offered in this module.
  
      .. note::
  
         Try to avoid having your password in your python code.  If you are running on your local
         machine, you should always be able to use ``det user login`` on the CLI, and ``login()``
         will not need either a user or a password.  If you have ran ``det user login`` with multiple
         users (and you have not ran ``det user logout``), then you should be able to run
         ``login(user=...)`` for any of those users without putting your password in your code.
  
      Args:
          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``)
          password (string, optional): The password associated with the user.
          cert_path (string, optional): A path to a custom PEM-encoded certificate,
              against which to validate the master.  (default: ``None``)
          cert_name (string, optional): The name of the master hostname to use during certificate
              validation. Normally this is taken from the master URL, but there may be cases where
              the master is exposed on multiple networks that this value might need to be
              overridden. (default: ``None``)
          noverify (boolean, optional): disable all TLS verification entirely.  (default: ``False``)
      """
      global _determined
  
      if _determined is not None:
          raise ValueError(
              "You can only call login() once, before any other calls to any functions in the client "
              "module.  If you have reason to connect to multiple masters, you should use explicit "
              "client.Determined() objects, which each expose the same functions as this module."
          )
  
      _determined = Determined(
          master, user, password, cert_path, cert_name, noverify
      )
  
imports: import functools
  import logging
  import pathlib
  import warnings
  from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, TypeVar, Union
  from determined.common.api import Session
  from determined.common.experimental._util import OrderBy
  from determined.common.experimental.checkpoint import Checkpoint, CheckpointOrderBy, CheckpointSortBy, CheckpointState, DownloadMode
  from determined.common.experimental.determined import Determined
  from determined.common.experimental.experiment import Experiment, ExperimentOrderBy, ExperimentSortBy, ExperimentState
  from determined.common.experimental.metrics import TrainingMetrics, TrialMetrics, ValidationMetrics
  from determined.common.experimental.model import Model, ModelOrderBy, ModelSortBy
  from determined.common.experimental.oauth2_scim_client import Oauth2ScimClient
  from determined.common.experimental.project import Project
  from determined.common.experimental.resource_pool import ResourcePool
  from determined.common.experimental.trial import Trial, TrialOrderBy, TrialSortBy, TrialState
  from determined.common.experimental.user import User
  from determined.common.experimental.workspace import Workspace
label_desc: Use image node_id 2 for calling a global function with example usage: login(master, user, password, cert_path, cert_name, noverify) without return types