code: def check_crop_dims_fixed_size(
      anchor, shape, expected_crop_shape, input_shape
  ):
      ndim = len(shape)
      for d in range(ndim):
          anchor_rng = sorted(
              (0.0, input_shape[d] - expected_crop_shape[d])
          )
          assert (
              anchor[d] >= anchor_rng[0] and anchor[d] <= anchor_rng[1]
          ), f"Expected anchor[{d}] to be within the range {anchor_rng}. Got: {anchor[d]}"
          assert shape[d] == expected_crop_shape[d], "{} != {}".format(
              shape, expected_crop_shape
          )
  
imports: from nvidia.dali.pipeline import Pipeline
  from nvidia.dali import pipeline_def
  import nvidia.dali.ops
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import random
label_desc: Use image node_id 6 for calling a global function with example usage: check_crop_dims_fixed_size(anchor, shape, expected_crop_shape, input_shape) without return types