def METHOD_NAME(local_dir: Path, configfile_name: str) -> None:
    """
    Generate a config.json file from configuration.yaml
    To do that we convert yaml to json
    :param local_dir: path of the local directory
    :param configfile_name: name of the yaml config file (by default configuration.yaml)
    """
    # Read the YAML file and generate a config.json
    with open(os.path.join(local_dir, configfile_name)) as yaml_in:
        yaml_object = yaml.safe_load(yaml_in)
        with open(os.path.join(local_dir, "config.json"), "w") as json_out:
            json.dump(yaml_object, json_out)