code: def is_hparam_type(ty):
      if isinstance(ty, type) and issubclass(ty, HParams):
          assert is_dataclass(ty)
          return True
      else:
          return False
  
imports: import typing
  from dataclasses import fields, is_dataclass
  from functools import lru_cache
  from typeguard import check_type
label_desc: Use image node_id 1 for calling a global function with example usage: is_hparam_type(ty) and returns: True, False