get_var_meta function

Get the metadata for a variable in a given dataset.