code: def test_anchor_target_layer(backend_default, fargs):
      (height, width) = fargs
  
      manifest_path = os.environ["PASCAL_MANIFEST_PATH"]
      assert (
          manifest_path is not None
      ), "Please set the PASCAL_MANIFEST_PATH variable."
  
      manifest_root = os.environ["PASCAL_MANIFEST_ROOT"]
      assert (
          manifest_root is not None
      ), "Please set the PASCAL_MANIFEST_ROOT variable."
  
      config = PASCALVOC(
          manifest_path,
          manifest_root,
          cache_dir="",
          height=height,
          width=width,
          inference=False,
      )
      config["subset_fraction"] = 0.1
  
      dl = DataLoader(config, backend_default)
      dl = TypeCast(dl, index=0, dtype=np.float32)
      train_set = ObjectLocalization(dl, frcn_rois_per_img=128)
  
      for idx, (X, Y) in enumerate(train_set):
          reference_test(train_set, X, Y)
  
file_path: neon/examples/faster-rcnn/tests/test_anchor_target_layer.py
imports: from __future__ import division
  import numpy
  from neon.backends import gen_backend
  import itertools
  from anchor_target_layer_ref import AnchorTargetLayer
  from objectlocalization import ObjectLocalization, PASCALVOC
  from neon.data.dataloader_transformers import TypeCast
  from aeon import DataLoader
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: test_anchor_target_layer(backend_default, fargs) without return types