def is_entity(entity):
    return isinstance(entity, (Entity, stix.Entity))
Returns true if `entity` is an instance of :class:`.Entity` or
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/__init__.py/is_entity