code: def update_context(*args):
      """data-describe configuration context.
  
      This can be used to use certain configuration values for a limited block of code,
      without needing to explicitly change these values to what they were previously.
  
      For example, if the current figure size is (10, 10), the following can be used to
      make one plot with a different figure size:
      ```
      with dd.config.update_context("display.fig_height", 20):
          dd.plot(df) # fig_height = 20 # noqa:RST301
      ```
  
      Args:
          *args: May be one of two formats:
              1. A single dictionary, either nested or using the configuration "path"s for keys
              2. Pairs of arguments, where the first argument is the configuration "path" and the
                  second is the value
  
      Raises:
          ValueError: Unsupported input format for assigning configuration values.
  
      Yields:
          Configuration context.
      """
      if len(args) == 1:
          new_config = _flatten_config(args[0])
      elif len(args) % 2 == 0:
          new_config = {
              k: v
              for k, v in [
                  (args[i], args[i + 1]) for i in range(0, len(args), 2)
              ]
          }
      else:
          raise ValueError(
              "Arguments must be either a dictionary or pairs of path, value"
          )
  
      old_config = _flatten_config(_get_config())
      _set_config(new_config)
  
      try:
          yield _get_config()
  
      finally:
          _set_config(old_config)
  
file_path: data-describe/data_describe/config/_config.py
imports: import contextlib
  import copy
  from typing import Any, Dict
  import pandas
label_desc: Use image node_id 7 for calling a global function with example usage: update_context() without return types