code: def metadata(
      cardinality: Union[int, List[int]],
      freq: str,
      prediction_length: int,
  ):
      if not isinstance(cardinality, list):
          cardinality = [cardinality]
  
      return {
          "freq": freq,
          "prediction_length": prediction_length,
          "feat_static_cat": [
              {"name": f"feat_static_cat_{i}", "cardinality": str(card)}
              for i, card in enumerate(cardinality)
          ],
      }
  
label_desc: Use image node_id 1 for calling a global function with example usage: metadata(cardinality, freq, prediction_length) and returns: dict