check this code:

#!/usr/bin/env python3

"""
MAKE MESSAGE HERE
"""

import sys
from const import Const


def check(ref: str, query: str) -> None:
    """
    Check if the necessary directories and files exist.
    The current implementation expects specific directory
    structures for the --reference and --query species.

    Parameters
    ----------
    ref : str
        Reference species identifier.
    query : str
        Query species identifier.

    Returns
    -------
    NoReturn

    Example
    -------
    >>> check()

    Notes
    -----
    The current implementation expects the following directory structure:

    pisco/
    |-- assets (already checked at the beginning of the run.py)
        |-- {ref}.bed [available options: hg38.bed, mm10.bed, galGal6.bed]

    user/
    |-- /user/path/{ref} -> represented by Const.FILES
            |-- fasta
                |- {ref}.fa
            |-- lastz
                |- vs_{query}
                    |- axtChain
                        |- *.chain.gz
            |-- TOGA
                |- vs_{query}
                    |- not empty
    """

    if not Const.ASSETS.joinpath(f"{ref}.bed").exists():
        raise FileNotFoundError(
            f"""
            {Const.ASSETS.joinpath(f'{ref}.bed')} does not exist. 
            Please clone the repository again or add your reference 
            .bed manually.
            """
        )
        sys.exit(1)

    if not Const.FILES.exists():
        raise FileNotFoundError(f"ERROR: {Const.FILES} does not exist.")
        sys.exit(1)
    elif not Const.FILES.joinpath(ref).exists():
        raise FileNotFoundError(f"ERROR: {Const.FILES.joinpath(ref)} does not exist.")
        sys.exit(1)

    # Ref fasta component checker block
    if not Const.FILES.joinpath(ref, "fasta").exists():
        raise FileNotFoundError(f"ERROR: {Const.FILES.joinpath(ref, 'fasta')} does not exist.")
        sys.exit(1)
    elif (
        not Const.FILES.joinpath(ref, "fasta", f"{ref}.fa").exists()
        and not Const.FILES.joinpath(ref, "fasta", f"{ref}.fa.gz").exists()
        and not Const.FILES.joinpath(ref, "fasta", f"{ref}.fasta").exists()
    ):
        raise FileNotFoundError(
            f"ERROR: {Const.FILES.joinpath(ref, 'fasta', f'{ref}.fa/fa.gz/fasta')} does not exist. Please provide a fasta file."
        )
        sys.exit(1)

    for q in query.split(","):
        # Lastz component checker block
        if not Const.FILES.joinpath(ref, "lastz", f"vs_{q}", "axtChain").glob(
            "*.chain.gz"
        ):
            raise FileNotFoundError(
                f"ERROR: {Const.FILES.joinpath(ref, 'lastz', f'vs_{q}', 'axtChain')} does not contain any chain files."
            )
            sys.exit(1)

        # TOGA component checker block
        if not Const.FILES.joinpath(ref, "TOGA", f"vs_{q}").exists():
            raise FileNotFoundError(
                f"ERROR: {Const.FILES.joinpath(ref, 'TOGA', f'vs_{q}')} does not exist."
            )
            sys.exit(1)
        elif not list(Const.FILES.joinpath(ref, "TOGA", f"vs_{q}").glob("*")):
            raise FileNotFoundError(f"ERROR: {Const.FILES.joinpath(ref, 'TOGA', f'vs_{q}')} is empty.")
            sys.exit(1)

        # Query fasta component checker block
        if not Const.FILES.joinpath(q, "fasta").exists():
            raise FileNotFoundError(f"ERROR: {Const.FILES.joinpath(q, 'fasta')} does not exist.")
            sys.exit(1)
        elif (
            not Const.FILES.joinpath(q, "fasta", f"{q}.fa").exists()
            and not Const.FILES.joinpath(q, "fasta", f"{q}.fa.gz").exists()
            and not Const.FILES.joinpath(q, "fasta", f"{q}.fasta").exists()
        ):
            raise FileNotFoundError(
                f"ERROR: {Const.FILES.joinpath(q, 'fasta', f'{q}.fa/fa.gz/fasta')} does not exist. Please provide a fasta file."
            )
            sys.exit(1)

    print("INFO: All necessary directories and files exist. Continuing...")
    return None


def confirm(ref: str, query: str) -> bool:
    """
    Confirm that the necessary directories and files have been
    created after the first pre-processing step.

    Parameters
    ----------
    query : str
        Query species identifier.

    Returns
    -------
    bool
        Returns True if the necessary directories and files exist.

    Example
    -------
    >>> confirm('GRCg6a')

    Notes
    -----
    The current implementation expects the following directory structure:

    pisco/
    |-- work
        |-- {query/ref}
            |-- {query}.chain_ids
            |-- {query}.chain.bin
            |-- chromseqs
                    |-- *.fa
    """
    species = query.split(",") + [ref]

    for s in species:
        if not Const.SPECIES.joinpath(s).exists():
            raise FileNotFoundError(f"ERROR: {Const.SPECIES.joinpath(s)} does not exist.")
            return False
        elif not Const.SPECIES.joinpath(s, "chromseqs").exists():
            raise FileNotFoundError(f"ERROR: {Const.SPECIES.joinpath(s, 'chromseqs')} does not exist.")
            return False
        elif not list(Const.SPECIES.joinpath(s, "chromseqs").glob("*.fa")):
            raise FileNotFoundError(
                f"ERROR: {Const.SPECIES.joinpath(s, 'chromseqs')} does not contain any fasta files."
            )
            return False

        if s != ref:
            if not Const.SPECIES.joinpath(s, f"{query}.chain_ids").exists():
                raise FileNotFoundError(
                    f"ERROR: {Const.SPECIES.joinpath(s, f'{query}.chain_ids')} does not exist."
                )
                return False
            elif not Const.SPECIES.joinpath(s, f"{query}.chain.bin").exists():
                raise FileNotFoundError(
                    f"ERROR: {Const.SPECIES.joinpath(s, f'{query}.chain.bin')} does not exist."
                )
                return False

    print(
        "INFO: All necessary post-processed directories and files exist. Continuing..."
    )
    return True

Please help me writing an introductory message explaining what this script does. Make sure your introduction follows good practices and numpy-docs.