def get_doc_by_input_hash(dataset, hash):
    """Return a doc from a dataset where hash matches doc["_input_hash"]
    Assumes there will only be one match!
    """
    return [doc for doc in dataset if doc["_input_hash"] == hash][0]