code: def __init__(
      self, frame_data, frame_variants=None, timestamp=None, **kwargs
  ):
      if isinstance(frame_data, bytes):
          self.frame_bytes = frame_data
          self.frame_array = None
      elif isinstance(frame_data, np.ndarray):
          self.frame_bytes = None
          self.frame_array = frame_data
  
      self.frame_variants = frame_variants or dict()
  
      self.timestamp = timestamp
  
      self.offset_x = kwargs.get("offset_x") or 0
      self.offset_y = kwargs.get("offset_y") or 0
  
      self.resize_order = kwargs.get("resize_order") or 1
  
imports: import skimage.color
  import skimage.measure
  import skimage.transform
  import skimage.filters
  import skimage.morphology
  import numpy
  import io
  from PIL import Image
label_desc: Use image node_id 1 to create a new GameFrame object  with example: obj = GameFrame(frame_data, frame_variants, timestamp)