code: def test_to_code():
      c1 = Complex(x=0.0, y=0.0)
      c2 = Complex(y=0.0, x=0.0)
  
      assert repr(c1) == repr(c2)
  
file_path: gluonts/test/core/test_component.py
imports: import random
  from typing import Dict, List
  from gluonts.core.component import validated
  from gluonts.core.serde import dump_json, load_json
label_desc: Use image node_id 2 for calling a global function with example usage: test_to_code() without return types