code: def evaluate_function(
      self, aug_function: Callable[..., Image.Image], **kwargs
  ):
      ref = self.get_ref_image(aug_function.__name__)
  
      with tempfile.NamedTemporaryFile(suffix=".png") as tmpfile:
          aug_function(
              self.local_img_path, output_path=tmpfile.name, **kwargs
          )
          file_dst = Image.open(tmpfile.name)
  
      pil_dst = aug_function(self.img, **kwargs)
  
      self.assertTrue(
          are_equal_images(pil_dst, ref),
          "Expected and outputted images do not match",
      )
      self.assertTrue(
          are_equal_images(file_dst, ref),
          "Expected and outputted images do not match",
      )
  
file_path: AugLy/augly/tests/image_tests/base_unit_test.py
imports: import os
  import tempfile
  import unittest
  from typing import Any, Callable, Dict, List, Optional
  import numpy
  from augly.tests import ImageAugConfig
  from augly.utils import pathmgr, TEST_URI
  from PIL import Image
label_desc: Use image node_id 3 for calling the BaseImageUnitTest obj's underlying member method code with example usage: obj.evaluate_function(aug_function) without return types