docstr: Iinitialize a default config and write it to default yaml path.
docstr_tok: ["Iinitialize","a","default","config","and","write","it","to","default","yaml","path","."]
code: def default_config(cls) -> CloudClientConfig:
      """Iinitialize a default config and write it to default yaml path."""
      config = cls(
          contexts=[], current_context_name=default_context_name
      )
      config.to_yaml_file()
      return config
  
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 5 for calling the CloudClientConfig obj's underlying member method code with example usage: obj.default_config(cls) and returns: config