from pathlib import Path


def _create_file(file_path: str) -> Path:
    """Create the report directory if it does not exists.

    Args:
        file_path (str): the path of the file to be created.

    Returns:
        (pathlib.Path): the created file path.
    """
    path = Path(file_path)
    path.parent.mkdir(parents=True, exist_ok=True)
    return path