code: def test_no_subclassing(self, cls):
      msg = (
          "ExtendsProtocol is a Protocol.*should not be subclassed.*"
          f"`class ExtendsProtocol[(]{cls.__name__}, Protocol[)]`"
      )
      with self.assertRaisesRegex(TypeError, msg):
  
          class ExtendsProtocol(cls):  # pylint: disable=unused-variable
              pass
  
file_path: dm-haiku/haiku/_src/typing_test.py
imports: from typing import Protocol
  from absl.testing import absltest
  from absl.testing import parameterized
  from haiku._src import module
  from haiku._src import test_utils
  from haiku._src import typing
label_desc: Use image node_id 3 for calling the TypingTest obj's underlying member method code with example usage: obj.test_no_subclassing(cls) without return types