code: def test_upgrade():
      slc = Slice(
          datasource_type="query", params=json.dumps(sample_params)
      )
  
      upgrade_slice(slc)
  
      params = json.loads(slc.params)
      assert slc.datasource_type == "table"
      assert params.get("datasource") == "35__table"
  
imports: import json
  from importlib import import_module
label_desc: Use image node_id 1 for calling a global function with example usage: test_upgrade() without return types