code: def test_model_layers_shapes(model_class):
      name = model_class.__name__
      scope = "TestLucidModelzoo"
      model = model_class()
      with tf.Graph().as_default() as graph:
          model.import_graph(scope=scope)
          for layer in model.layers:
              name, declared_size = layer.name, layer.depth
              imported_name = "{}/{}:0".format(scope, name)
              tensor = graph.get_tensor_by_name(imported_name)
              actual_size = tensor.shape[-1]
              assert int(actual_size) == int(declared_size)
  
file_path: lucid/tests/modelzoo/test_vision_models.py
imports: from __future__ import absolute_import, division, print_function
  import pytest
  import inspect
  import tensorflow
  from lucid.modelzoo.nets_factory import models_map, get_model
  from lucid.modelzoo import caffe_models, other_models, slim_models, vision_models
  from lucid.modelzoo.vision_base import Layer
label_desc: Use image node_id 4 for calling a global function with example usage: test_model_layers_shapes(model_class) without return types