code: def make_final_spec(alt, basic_spec):
      theme = alt.themes.get()
      spec = theme()
      spec.update(basic_spec)
      return spec
  
file_path: altair/tests/vegalite/test_common.py
imports: import pytest
  import pandas
  from altair.vegalite import v5
label_desc: Use image node_id 2 for calling a global function with example usage: make_final_spec(alt, basic_spec) and returns: spec