code: def relaxed_compare(val_1, val_2, reference=None, eps=1, border=0):
      test = diff_against_eps(val_1, val_2, eps)
  
      if reference is not None:
          if border != 0:
              reference = crop_border(reference, border)
              test = test and diff_against_eps(
                  reference, crop_border(val_1, border), eps
              )
              test = test and diff_against_eps(
                  reference, crop_border(val_2, border), eps
              )
          else:
              test = test and diff_against_eps(reference, val_1, eps)
              test = test and diff_against_eps(reference, val_2, eps)
      return test
  
imports: import argparse
  import os
  from math import ceil, sqrt
  import numpy
  import nvidia.dali.ops
  import nvidia.dali.types
  from nvidia.dali.pipeline import Pipeline
  from test_utils import get_dali_extra_path
  from test_utils import to_array
label_desc: Use image node_id 10 for calling a global function with example usage: relaxed_compare(val_1, val_2, reference, eps, border) and returns: test