code: def test_ability_to_import(
      self, tested_block, input_rank, hparams=None
  ):
      # Force graph mode
      with tf.compat.v1.Graph().as_default():
          input_tensor = tf.zeros([32] * (input_rank))
  
          with arg_scope(
              architecture_utils.DATA_FORMAT_OPS, data_format="NHWC"
          ):
              with tf.compat.v1.variable_scope("scope_a"):
                  _ = tested_block.block_build(
                      [input_tensor], is_training=True, hparams=hparams
                  )
              with tf.compat.v1.variable_scope("scope_b"):
                  _ = tested_block.block_build(
                      [input_tensor], is_training=True, hparams=hparams
                  )
  
          nodes = tf.compat.v1.get_default_graph().as_graph_def().node
          scope_a = [
              node.name
              for node in nodes
              if "scope_a" in node.name
              and "global_step" not in node.name
          ]
          scope_b = [
              node.name
              for node in nodes
              if "scope_b" in node.name
              and "global_step" not in node.name
          ]
          self.assertAllEqual(
              scope_a,
              [name.replace("scope_b", "scope_a") for name in scope_b],
          )
  
file_path: model_search/model_search/block_test.py
imports: from absl.testing import parameterized
  from model_search import block
  from model_search import hparam
  from model_search.architecture import architecture_utils
  import tensorflow.compat.v2
  import tf_slim
label_desc: Use image node_id 1 for calling the BlockImportTest obj's underlying member method code with example usage: obj.test_ability_to_import(tested_block, input_rank, hparams) without return types