code: def __init__(
      self,
      x_list: List[Foo],
      x_dict: Dict[int, Foo],
      input_fields: List[Foo],
  ) -> None:
      self.x_list = x_list
      self.x_dict = x_dict
      self.input_fields = input_fields
  
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 1 to create a new Bar object  with example: obj = Bar(x_list, x_dict, input_fields)