code: def _assert_state(self, *expected):
      if self.state not in expected:
          raise AssertionError(
              f"state: {self.state!r}, expected: {expected!r}"
          )
  
imports: import socket
  import asyncio
  import sys
  import unittest
  from asyncio import proactor_events
  from itertools import cycle, islice
  from unittest.mock import Mock
  from test.test_asyncio import utils
  from test import support
  from test.support import socket_helper
label_desc: Use image node_id 2 for calling the MyProto obj's underlying member method code with example usage: obj._assert_state() without return types