code: def get_data_meta(data, mapping=None):
      _, _, data_meta = as_annotated_data(data, mapping)
      return data_meta["data_meta"]
  
file_path: lets-plot/python-package/test/plot/test_series_annotations.py
imports: from datetime import datetime
  from pandas import DataFrame, Categorical
  from lets_plot import aes
  from lets_plot.mapping import as_discrete
  from lets_plot.plot.util import as_annotated_data
label_desc: Use image node_id 7 for calling a global function with example usage: get_data_meta(data, mapping) and returns: data_meta