def get_object_type(objects: list, types: list) -> list:
    """Get the object specified.
    Args:
      objects: a list of objects.
      types: a list of the types.
    Returns:
        A list of a certain type.
    """
    return [item for item in objects if item.get('type') in types]