code: def ts(
      start,
      target,
      feat_static_cat=None,
      feat_static_real=None,
      feat_dynamic_cat=None,
      feat_dynamic_real=None,
  ) -> DataEntry:
      d = {"start": start, "target": target}
      if feat_static_cat is not None:
          d["feat_static_cat"] = feat_static_cat
      if feat_static_real is not None:
          d["feat_static_real"] = feat_static_real
      if feat_dynamic_cat is not None:
          d["feat_dynamic_cat"] = feat_dynamic_cat
      if feat_dynamic_real is not None:
          d["feat_dynamic_real"] = feat_dynamic_real
      return d
  
file_path: gluonts/test/dataset/test_stat.py
imports: import unittest
  from typing import cast
  import numpy
  import pandas
  from gluonts.dataset.common import DataEntry, Dataset
  from gluonts.dataset.stat import DatasetStatistics, ScaleHistogram, calculate_dataset_statistics
  from gluonts.exceptions import GluonTSDataError
label_desc: Use image node_id 3 for calling a global function with example usage: ts(start, target, feat_static_cat, feat_static_real, feat_dynamic_cat, feat_dynamic_real) and returns: d