def parameterize_path(path, parameters):
if parameters is None:<EOL><INDENT>parameters = {}<EOL><DEDENT>try:<EOL><INDENT>return path.format(**parameters)<EOL><DEDENT>except KeyError as key_error:<EOL><INDENT>raise PapermillMissingParameterException("<STR_LIT>".format(key_error))<EOL><DEDENT>
Format a path with a provided dictionary of parameters

    Parameters
    ----------
    path : string
       Path with optional parameters, as a python format string
    parameters : dict
       Arbitrary keyword arguments to fill in the path