code: def _check_data(self, data):
      if data is not None and not isinstance(
          data, self._allow_data_type_
      ):
          raise TypeError(
              f"Expect {self._allow_data_type_}, got {type(data)}"
          )
  
imports: from ...serialization.serializables import Serializable, FieldTypes, DictField, ReferenceField
  from ...utils import AttributeDict
  from ..base import Base
label_desc: Use image node_id 5 for calling the Entity obj's underlying member method code with example usage: obj._check_data(data) without return types