code: def test_suggest_save_args_existing_graphs(capsys, model_class):
      graph_def = model_class().graph_def
  
      if (
          model_class == InceptionV1
      ):  # has flexible input shape, can't be inferred
          with pytest.warns(UserWarning):
              inferred = Model.suggest_save_args(graph_def)
      else:
          inferred = Model.suggest_save_args(graph_def)
  
      assert model_class.input_name == inferred["input_name"]
  
      if model_class != InceptionV1:
          assert model_class.image_shape == inferred["image_shape"]
  
      layer_names = [layer.name for layer in model_class.layers]
      for output_name in list(inferred["output_names"]):
          assert output_name in layer_names
  
imports: import pytest
  import tensorflow
  from lucid.modelzoo.vision_base import Model
  from lucid.modelzoo.vision_models import AlexNet, InceptionV1, InceptionV3_slim, ResnetV1_50_slim
label_desc: Use image node_id 3 for calling a global function with example usage: test_suggest_save_args_existing_graphs(capsys, model_class) without return types