def is_scenario_file(file_name: str):
        """Verify if the scenario file is valid.

        Args:
            file_name: The path to the .pkl file.

        Returns:
            A Boolean.
        """
        file_name = os.path.basename(file_name)
        if not file_name.endswith(".pkl"):
            return False
        file_name = file_name.replace(".pkl", "")
        return os.path.basename(file_name)[:3] == "sd_" or all(char.isdigit() for char in file_name)
Verify if the scenario file is valid.

        Args:
            file_name: The path to the .pkl file.

        Returns:
            A Boolean.
        
metadrive/scenario/scenario_description.py