class_docstr: Container of request-scoped values.
  
  This context is for cross-cutting concerns: authentication,
  authorization, auditing, internationalization, logging, and so on.
  It is not simply for passing commonly used parameters to functions.
  
  `RequestContext` values are to be treated as immutable.
  
  Fields:
    auth: An `AuthContext`, which may be empty but is never `None`.
    remote_ip: An `ipaddress.IPv4Address` or `ipaddress.IPv6Address` or None.
      Best guess of the IP Address of the end user.
    x_forwarded_for: A tuple of `ipaddress.IPv4Address` or `ipaddress.IPv6Address`,
      which may be empty but is never None. This should be parsed value of X-Forwarded-For
      HTTP header from the request.
    client_feature_flags: A dict of string to arbitrary type. These represent
      feature flag key/value pairs sent by the client application. Usage of
      client_feature_flags should know the name of the feature flag key and
      should know and validate the type of the value.
docstr: Create a request context.
  
  The argument list is sorted and may be extended in the future;
  therefore, callers must pass only named arguments to this
  initializer.
  
  Args:
    See "Fields" on class docstring. All arguments are optional
    and will be replaced with default values if appropriate.
code: def __init__(
      self,
      auth=None,
      remote_ip=None,
      x_forwarded_for=None,
      client_feature_flags=None,
  ):
      """Create a request context.
  
      The argument list is sorted and may be extended in the future;
      therefore, callers must pass only named arguments to this
      initializer.
  
      Args:
        See "Fields" on class docstring. All arguments are optional
        and will be replaced with default values if appropriate.
      """
      self._auth = (
          auth if auth is not None else auth_lib.AuthContext.empty()
      )
      self._remote_ip = remote_ip
      self._x_forwarded_for = x_forwarded_for or ()
      self._client_feature_flags = client_feature_flags or {}
  
file_path: tensorboard/tensorboard/context.py
imports: from tensorboard import auth
label_desc: Use image node_id 1 to create a new RequestContext object  with example: obj = RequestContext(auth, remote_ip, x_forwarded_for, client_feature_flags)