code: def check_operator_erase_vs_python(
      device,
      batch_size,
      input_shape,
      anchor,
      shape,
      axis_names,
      axes,
      input_layout,
      fill_value,
  ):
      eii1 = RandomDataIterator(
          batch_size, shape=input_shape, dtype=np.float32
      )
      eii2 = RandomDataIterator(
          batch_size, shape=input_shape, dtype=np.float32
      )
  
      fill_value_arg1 = fill_value
      fill_value_arg2 = fill_value
      if fill_value == "random":
          fill_eii1 = RandomDataIterator(
              batch_size, shape=input_shape[-1:], dtype=np.float32
          )
          fill_eii2 = RandomDataIterator(
              batch_size, shape=input_shape[-1:], dtype=np.float32
          )
          fill_value_arg1 = iter(fill_eii1)
          fill_value_arg2 = iter(fill_eii2)
  
      compare_pipelines(
          ErasePipeline(
              device,
              batch_size,
              input_layout,
              iter(eii1),
              anchor=anchor,
              shape=shape,
              axis_names=axis_names,
              axes=axes,
              fill_value=fill_value_arg1,
          ),
          ErasePythonPipeline(
              device,
              batch_size,
              input_layout,
              iter(eii2),
              anchor=anchor,
              shape=shape,
              axis_names=axis_names,
              axes=axes,
              fill_value=fill_value_arg2,
          ),
          batch_size=batch_size,
          N_iterations=3,
          eps=1e-04,
          expected_layout=input_layout,
      )
  
imports: from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import numpy
  from functools import partial
  from test_utils import compare_pipelines
  from test_utils import RandomDataIterator
label_desc: Use image node_id 4 for calling a global function with example usage: check_operator_erase_vs_python(device, batch_size, input_shape, anchor, shape, axis_names, axes, input_layout, fill_value) without return types