class_docstr: Pushes chunks of files to our streaming endpoint.
  
  This class is used as a singleton. It has a thread that serializes access to
  the streaming endpoint and performs rate-limiting and batching.
  
  TODO: Differentiate between binary/text encoding.
code: def _thread_except_body(self) -> None:
      # TODO: Consolidate with internal_util.ExceptionThread
      try:
          self._thread_body()
      except Exception as e:
          exc_info = sys.exc_info()
          self._exc_info = exc_info
          logger.exception("generic exception in filestream thread")
          wandb._sentry.exception(exc_info)
          raise e
  
imports: import base64
  import functools
  import itertools
  import logging
  import os
  import queue
  import random
  import sys
  import threading
  import time
  from types import TracebackType
  from typing import TYPE_CHECKING, Any, Callable, Dict, List, NamedTuple, Optional, Set, Tuple, Type, Union
  import requests
  import wandb
  from wandb import util
  from wandb.sdk.internal import internal_api
  from ..lib import file_stream_utils
label_desc: Use image node_id 10 for calling the FileStreamApi obj's underlying member method code with example usage: obj._thread_except_body() without return types