def find_item_with_needed_resource(name: str, items):
    """ Find the item from the list with a resource that is needed.

        Args:
            name (str): The name of the resource to find.

        Returns:
            (Item):
    """
    for item in items:
        for resource in item.resources:
            if (resource.name == name):
                return item

    return None