code: def _draw(self, frame: np.ndarray, mask: np.ndarray):
      frame = np.minimum(frame, np.stack((mask,) * 3, axis=-1))
      path = os.path.join(
          tempfile.gettempdir(), self.id().split(".")[-1] + ".png"
      )
      cv2.imwrite(path, frame)
  
file_path: mediapipe/mediapipe/python/solutions/selfie_segmentation_test.py
imports: import os
  from absl.testing import absltest
  from absl.testing import parameterized
  import cv2
  import numpy
  from mediapipe.python.solutions import selfie_segmentation
label_desc: Use image node_id 1 for calling the SelfieSegmentationTest obj's underlying member method code with example usage: obj._draw(frame, mask) without return types