def box_file_to_llama_document(box_file: File) -> Document:
    """
    Convert a Box SDK File object to a Llama Document object.

    Args:
        box_file: Box SDK File object

    Returns:
        Llama Document object

    """
    document = Document()

    # this separations between extra_info and metadata seem to be pointless
    # when we update one, the other gets also updated with the same data
    document.extra_info = box_file.to_dict()
    document.metadata = box_file_to_llama_document_metadata(box_file)

    return document

    Convert a Box SDK File object to a Llama Document object.

    Args:
        box_file: Box SDK File object

    Returns:
        Llama Document object

    
llama-index-integrations/readers/llama-index-readers-box/llama_index/readers/box/BoxAPI/box_llama_adaptors.py