code: def flatmap_transform(
      self, data: DataEntry, is_train: bool
  ) -> Iterator[DataEntry]:
      if self.condition(data):
          yield data
  
imports: import abc
  from dataclasses import dataclass
  from typing import Callable, Iterable, Iterator, List
  from gluonts.core.component import equals, validated
  from gluonts.dataset.common import DataEntry, Dataset
  from gluonts.env import env
label_desc: Use image node_id 2 for calling the FilterTransformation obj's underlying member method code with example usage: obj.flatmap_transform(data, is_train) without return types