code: def test_exp_num_sampler():
      sampler = transform.ExpectedNumInstanceSampler(num_instances=4)
      assert equals(sampler, clone(sampler))
      assert not equals(sampler, clone(sampler, {"num_instances": 5}))
  
file_path: gluonts/test/mx/test_transform_equals.py
imports: from gluonts.core.serde.flat import clone
  from gluonts import time_feature, transform
  from gluonts.core.component import equals
  from gluonts.dataset.field_names import FieldName
  from gluonts.mx import CanonicalRNNEstimator
  from pandas.tseries.frequencies import to_offset
label_desc: Use image node_id 4 for calling a global function with example usage: test_exp_num_sampler() without return types