code: def dtypes(self) -> Dict[str, Type]:
      return valmap(attrgetter("dtype"), self)
  
file_path: gluonts/src/gluonts/model/inputs.py
imports: from collections import UserDict
  from dataclasses import dataclass
  from operator import attrgetter
  from typing import Any, Callable, Dict, Type, Tuple
  from toolz import valmap
label_desc: Use image node_id 2 for calling the InputSpec obj's underlying member method code with example usage: obj.dtypes() and returns: valmap