def METHOD_NAME(path: list, xy: list, *args, **kwargs):
    """
    :meta private:
    """
    def extension(path):
        return path.split(".")[-1]
    if len(path) == 1:
        if extension(path[0]) == "csv":
            plot_for_single_csv(path[0], xy)
        elif extension(path[0]) == "json":
            plot_for_single_json(path[0], xy)
        else:
            raise DeephyperRuntimeError(
                f"Extension of input file '{extension(path[0])}' is not yet supported."
            )
    else:
        # Comparing multiple results.csv files (different search experiments)
        if all([extension(p) == "csv" for p in path]):
            raise DeephyperRuntimeError(
                "Comparison of multiple experiments is not yet supported."
            )
        # Comparing multiple history.json files (different neural networks)
        elif all([extension(p) == "json" for p in path]):
            plot_for_multiple_json(path, xy)
        else:
            raise DeephyperRuntimeError(
                "Multiple input files should all have the same extension '.csv' or '.json'"
            )