from pathlib import Path


def GetRendererLabelFromFilename(file_path: str) -> str:
  """Gets the renderer label from the given file name by removing the '_renderer.py' suffix."""
  file_name = Path(file_path).stem
  return file_name.rstrip("_renderer.py")