def METHOD_NAME(data_instance, exposure_index):
    """
    return exposure of a given data_instance
    Parameters
    ----------
    data_instance: Table of Instances, input data
    exposure_index: column index of exposure variable
    """
    if exposure_index == -1:
        exposure = 1
    else:
        exposure = data_instance.features[exposure_index]
    return exposure