code: def test_instance_splitter():
      splitter = transform.InstanceSplitter(
          target_field=FieldName.TARGET,
          is_pad_field=FieldName.IS_PAD,
          start_field=FieldName.START,
          forecast_start_field=FieldName.FORECAST_START,
          instance_sampler=transform.ExpectedNumInstanceSampler(
              num_instances=4
          ),
          past_length=100,
          future_length=10,
          time_series_fields=["dynamic_feat", "observed_values"],
      )
  
      splitter2 = clone(
          splitter,
          {
              "instance_sampler": transform.ExpectedNumInstanceSampler(
                  num_instances=5
              )
          },
      )
      assert equals(splitter, clone(splitter))
      assert not equals(splitter, splitter2)
  
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 6 for calling a global function with example usage: test_instance_splitter() without return types