from pathlib import Path


def _check_behaviour_toml(behaviour_toml: Path) -> Path:
    """
    Check the behaviour toml provided exists.
    Parameters
    ----------
    behaviour_toml: Path
        Path to behaviour toml
    Returns
    -------
    Path
        Absolute Path to the toml file.
    """
    if behaviour_toml.exists():
        return behaviour_toml.resolve()
    raise FileNotFoundError(behaviour_toml)