code: def get_context(self, context: t.Optional[str]) -> CloudClientContext:
      for ctx in self.contexts:
          if ctx.name == context:
              return ctx
      raise CloudRESTApiClientError(
          f"Not found {context} cloud context, please login!"
      )
  
imports: from __future__ import annotations
  import logging
  import typing
  import attr
  import yaml
  from simple_di import Provide
  from simple_di import inject
  from ...exceptions import CloudRESTApiClientError
  from ..configuration.containers import BentoMLContainer
  from ..utils import bentoml_cattr
  from .client import RestApiClient
label_desc: Use image node_id 1 for calling the CloudClientConfig obj's underlying member method code with example usage: obj.get_context(context) and returns: ctx