def METHOD_NAME(itr, typ):
    """
    to check whether the object belongs to respective stix object
    """
    return TestDatadogResultsToStix.get_first(itr, lambda o: isinstance(o, dict) and o.get('type') == typ)