code: def test_subgraph(self, var_names, vars_to_plot, compute_graph):
      mg = ModelGraph(model_with_different_descendants())
      assert set(mg.vars_to_plot(var_names=var_names)) == set(
          vars_to_plot
      )
      assert mg.make_compute_graph(var_names=var_names) == compute_graph
  
imports: import warnings
  import numpy
  import pytensor
  import pytensor.tensor
  import pytest
  from pytensor.compile.sharedvalue import SharedVariable
  from pytensor.tensor.variable import TensorConstant
  import pymc
  from pymc.exceptions import ImputationWarning
  from pymc.model_graph import ModelGraph, model_to_graphviz, model_to_networkx
label_desc: Use image node_id 1 for calling the TestVariableSelection obj's underlying member method code with example usage: obj.test_subgraph(var_names, vars_to_plot, compute_graph) without return types