code: def apply(self, stream):
      return it.Map(self, stream)
  
imports: from dataclasses import dataclass
  from typing import Any, Dict, List, Type
  from gluonts import itertools
label_desc: Use image node_id 2 for calling the Map obj's underlying member method code with example usage: obj.apply(stream) and returns: it