original_docstring: 
      Takes a stream of bytes that constitute an image and converts to an numpy array
      :param image_bytes:
      :return:
      
docstring: Takes a stream of bytes that constitute an image and converts to an numpy array
docstring_tokens: Takes a stream of bytes that constitute an image and converts to an numpy array
code: def bytes_to_numpy_array(
          image_bytes: bytes
  ) -> np.array:
      """
      Takes a stream of bytes that constitute an image and converts to an numpy array
      :param image_bytes:
      :return:
      """
      # a small trick to convert a spooled file into a numpy array without having to write anything to local disk
      uploaded_image_array = cv2.imdecode(np.frombuffer(image_bytes, np.uint8), -1)
      return uploaded_image_array
code_tokens: def bytes_to_numpy_array ( image_bytes : bytes ) -> np . array : uploaded_image_array = cv2 . imdecode ( np . frombuffer ( image_bytes , np . uint8 ) , - 1 ) return uploaded_image_array
short_docstring: Takes a stream of bytes that constitute an image and converts to an numpy array
short_docstring_tokens: Takes a stream of bytes that constitute an image and converts to an numpy array
comment: """
      Takes a stream of bytes that constitute an image and converts to an numpy array
      :param image_bytes:
      :return:
      """$SEP$# a small trick to convert a spooled file into a numpy array without having to write anything to local disk