code: def real(catch22: bool):
      """
      Download and process real-world datasets specified in 'DATASETS_FILTERED'.
  
      Parameters
      ----------
      catch22: bool
          If true, catch22 features for each time series and 100 nearest neighbors w.r.t. l2 distance in
          feature space are computed.
      """
      for dataset in tqdm(DATASETS_FILTERED):
          dm = get_data_module(
              name="dm_" + dataset,
              dataset_name=dataset,
              context_length_multiple=4,
              support_length_multiple=4,
              support_set_size=1,
              catch22_train=catch22,  # compute catch22 features and nearest neighbors
          )
          dm.setup()
  
file_path: gluonts/src/gluonts/nursery/few_shot_prediction/src/scripts/data.py
imports: import os
  from pathlib import Path
  import itertools
  import yaml
  from tqdm.auto import tqdm
  import matplotlib.pyplot
  import numpy
  import click
  import torch
  from meta.datasets import get_data_module, DATASETS_FILTERED
  from meta.datasets.cheat import CheatMetaData
  from meta.common.torch import tensor_to_np
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: real(catch22) without return types