def METHOD_NAME(filepath: str) -> str:
    """Extract base filename from an animation file path."""
    cleaned_filename = os.path.splitext(os.path.basename(filepath))[0]
    cleaned_filename = cleaned_filename.lower()
    cleaned_filename = cleaned_filename.replace(" ", "_")
    return cleaned_filename