class_docstr: Possibly filtered, possibly sorted DynamicItemDataset.
  
  Shares the static data (reference).
  Has its own dynamic_items and output_keys (deepcopy).
code: def from_json(
      cls,
      json_path,
      replacements={},
      dynamic_items=None,
      output_keys=None,
  ):
      raise TypeError(
          "Cannot create SubsetDynamicItemDataset directly!"
      )
  
imports: import copy
  import contextlib
  from types import MethodType
  from torch.utils.data import Dataset
  from speechbrain.utils.data_pipeline import DataPipeline
  from speechbrain.dataio.dataio import load_data_json, load_data_csv
  from speechbrain.utils.data_utils import batch_shuffle
  import logging
  import math
label_desc: Use image node_id 2 for calling the FilteredSortedDynamicItemDataset obj's underlying member method code with example usage: obj.from_json(cls, json_path, replacements, dynamic_items, output_keys) without return types