code: def get_scoped_data_reference(vega_spec, data_name, usage_scope):
      for i in reversed(range(len(usage_scope) + 1)):
          scope = usage_scope[:i]
          datasets = get_datasets_for_scope(vega_spec, scope) or []
          if data_name in datasets:
              return (data_name, scope)
      return None
  
file_path: vegafusion/python/vegafusion/vegafusion/evaluation.py
imports: from altair import data_transformers, Chart, FacetChart, LayerChart, HConcatChart, VConcatChart, ConcatChart
  from altair.utils.schemapi import Undefined
label_desc: Use image node_id 9 for calling a global function with example usage: get_scoped_data_reference(vega_spec, data_name, usage_scope) and returns: None, data_name,  scope