code: def image_to_jpeg_bytes(
      image, quality=[int(cv2.IMWRITE_JPEG_QUALITY), 95]
  ):
      """
      Convert numpy image to bytes-encoded jpeg image.
      """
      buf = image_to_jpeg_nparray(image, quality)
      byte_im = buf.tobytes()
      return byte_im
  
file_path: cortex/test/utils/throughput_test.py
imports: import os
  import sys
  import click
  import concurrent.futures
  import requests
  import imageio
  import json
  import time
  import itertools
  import cv2
  import numpy
  from validator_collection import checkers
label_desc: Use image node_id 6 for calling a global function with example usage: image_to_jpeg_bytes(image, quality) and returns: byte_im