def METHOD_NAME(file_path: str, param_name: str):
    """Gets a parameter value by its name from output metadata JSON."""
    output = pipeline_spec_pb2.ExecutorOutput()
    json_format.Parse(
        text=_gcs_helper.GCSHelper.read_from_gcs_path(file_path),
        message=output)
    value = output.parameters[param_name]
    return getattr(value, value.WhichOneof('value'))