code: def _convert_future_exc(exc):
      exc_class = type(exc)
      if exc_class is concurrent.futures.CancelledError:
          return exceptions.CancelledError(*exc.args)
      elif exc_class is concurrent.futures.TimeoutError:
          return exceptions.TimeoutError(*exc.args)
      elif exc_class is concurrent.futures.InvalidStateError:
          return exceptions.InvalidStateError(*exc.args)
      else:
          return exc
  
imports: import concurrent.futures
  import contextvars
  import logging
  import sys
  from types import GenericAlias
  from .None import base_futures
  from .None import events
  from .None import exceptions
  from .None import format_helpers
label_desc: Use image node_id 3 for calling a global function with example usage: _convert_future_exc(exc) and returns: exceptions, exceptions, exceptions, exc