code: def test_chain():
      chain = transform.Chain(
          [
              transform.AddTimeFeatures(
                  start_field=FieldName.START,
                  target_field=FieldName.TARGET,
                  output_field="time_feat",
                  time_features=[
                      time_feature.day_of_week,
                      time_feature.day_of_month,
                      time_feature.month_of_year,
                  ],
                  pred_length=10,
              ),
              transform.AddAgeFeature(
                  target_field=FieldName.TARGET,
                  output_field="age",
                  pred_length=10,
                  log_scale=True,
              ),
              transform.AddObservedValuesIndicator(
                  target_field=FieldName.TARGET,
                  output_field="observed_values",
              ),
          ]
      )
  
      assert equals(chain, clone(chain))
      assert not equals(chain, clone(chain, {"transformations": []}))
  
      another_chain = transform.Chain(
          [
              transform.AddTimeFeatures(
                  start_field=FieldName.START,
                  target_field=FieldName.TARGET,
                  output_field="time_feat",
                  time_features=[
                      time_feature.day_of_week,
                      time_feature.day_of_month,
                      time_feature.month_of_year,
                  ],
                  pred_length=10,
              ),
              transform.AddAgeFeature(
                  target_field=FieldName.TARGET,
                  output_field="age",
                  pred_length=10,
                  log_scale=False,
              ),
              transform.AddObservedValuesIndicator(
                  target_field=FieldName.TARGET,
                  output_field="observed_values",
              ),
          ]
      )
      assert not equals(chain, another_chain)
  
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 8 for calling a global function with example usage: test_chain() without return types