code: def test_zoom_ground_truth_temporary_class_without_ground_truth_images():
      file_ending = "PNG"
  
      # Create directories for the standard images and the ground truth images.
      standard_image_directory = tempfile.mkdtemp()
      ground_truth_image_directory = tempfile.mkdtemp(
          prefix="ground-truth_"
      )
  
      # Create images in each directory, but with the same names.
      # First create a number of image names.
      image_names = []
      num_of_images = random.randint(1, 10)
      for i in range(num_of_images):
          image_names.append("im%s.%s" % (i, file_ending))
  
      # Create random images, one set of 'standard' images
      # and another set of ground truth images.
      standard_images = []
      ground_truth_images = []
  
      for image_name in image_names:
          im = Image.fromarray(
              np.uint8(np.random.rand(80, 80, 3) * 255)
          )  # (80, 80) for Greyscale
          im_path = os.path.join(
              os.path.abspath(standard_image_directory), image_name
          )
          im.save(im_path, file_ending)
          standard_images.append(im_path)
  
      for image_name in image_names:
          im = Image.fromarray(
              np.uint8(np.random.rand(80, 80, 3) * 255)
          )  # (80, 80) for Greyscale
          im_path = os.path.join(
              os.path.abspath(ground_truth_image_directory), image_name
          )
          im.save(im_path, file_ending)
          ground_truth_images.append(im_path)
  
      # Test the functionality using the ZoomGroundTruth test
      # operation WITHOUT passing ground truth images. This is
      # to test the operation performs as expected with only
      # the standard images being passed to the operation
      #
      # Start by creating a Pipeline object.
      p = Augmentor.Pipeline(standard_image_directory)
  
      # Now add the operation test class manually (as there is no helper
      # function for this operation)
      p.add_operation(
          ZoomGroundTruth(probability=1, min_factor=1.1, max_factor=1.4)
      )
      assert len(p.operations) == 1
  
      # Sample random number of times, generate, confirm presence.
      num_of_samples_to_generate = random.randint(1, 100)
      p.sample(num_of_samples_to_generate)
      generated_files = glob.glob(
          os.path.join(standard_image_directory, "output/*")
      )
      assert len(generated_files) == num_of_samples_to_generate
  
      # Remove the directories that we used entirely
      shutil.rmtree(standard_image_directory)
      shutil.rmtree(ground_truth_image_directory)
  
file_path: Augmentor/tests/test_ground_truth_augmentation.py
imports: import pytest
  import os
  import sys
  import Augmentor
  import tempfile
  import io
  import shutil
  import glob
  import random
  import numpy
  from PIL import Image
  from Augmentor.Operations import ZoomGroundTruth
label_desc: Use image node_id 2 for calling a global function with example usage: test_zoom_ground_truth_temporary_class_without_ground_truth_images() without return types