code: def __enter__(self):
      full_path = path.join(path.dirname(__file__), self.source_image)
      loaded_image = cv2.imread(full_path, cv2.IMREAD_COLOR)
      previous_width = loaded_image.shape[1]
      new_width = self.image_width
      factor = new_width / previous_width
      new_height = int(loaded_image.shape[0] * factor)
      resized_image = cv2.resize(
          loaded_image,
          (new_width, new_height),
          interpolation=cv2.INTER_AREA,
      )
      _, self.encoded_image = cv2.imencode(
          ".jpg",
          resized_image,
          [int(cv2.IMWRITE_JPEG_QUALITY), self.quality],
      )
  
      self.destination = np.zeros(
          (new_height, new_width, 3), dtype="uint8"
      )
  
      Compiler.set_enabled(self.compile)
  
      n = self.n
      decode = Compiler.compile(imdecode)
  
      def code(source, dest):
          for _ in range(n):
              decode(
                  source,
                  dest,
                  new_height,
                  new_width,
                  new_height,
                  new_width,
                  0,
                  0,
                  1,
                  1,
                  False,
              )
  
      self.code = Compiler.compile(code)
  
file_path: ffcv/ffcv/benchmarks/suites/jpeg_decode.py
imports: from os import path
  import numpy
  import cv2
  from numpy.core.numeric import full
  from ..decorator import benchmark
  from ..benchmark import Benchmark
  from ...pipeline.compiler import Compiler
  from ...libffcv import imdecode
label_desc: Use image node_id 2 for calling the JPEGDecodeBenchmark obj's underlying member method code with example usage: obj.__enter__() without return types