from pathlib import Path


def image_test(image_path: Path) -> bool:
    """Determine if the given image path is in the "true" folder,
    so the training / fine-tuning algorithm can learn from it.

    Args:
        image_path (Path): The Path for the image being processed

    Returns:
        bool: `True` if the folder contains `true` in the path,
              `False` otherwise.
    """
    # See: https://docs.python.org/3/library/pathlib.html#accessing-individual-parts
    return "true" in image_path.parts