code: def test_duplicated_block_names(self):
      model = self.DummyTestModelDuplicatedBlockNames()
      head = self.DummyTestHead()
      heads = {"dummy_block2": [head]}
      with self.assertRaises(Exception):
          # there are two modules with the name "dummy_block2"
          # which is not supported
          model.set_heads(heads)
      # can still attach to a module with a unique id
      heads = {"features": [head]}
      model.set_heads(heads)
  
file_path: ClassyVision/test/models_classy_block_test.py
imports: import unittest
  import torch
  import torch.nn
  from classy_vision.heads import ClassyHead
  from classy_vision.models import ClassyModel, ClassyModelHeadExecutorWrapper, ClassyModelWrapper
label_desc: Use image node_id 5 for calling the TestClassyBlock obj's underlying member method code with example usage: obj.test_duplicated_block_names() without return types