code: def _assert(
      self,
      read=False,
      nowait=False,
      of=None,
      key_share=None,
      assert_q_of=None,
      assert_sel_of=None,
  ):
      User = self.classes.User
      s = fixture_session()
      q = s.query(User).with_for_update(
          read=read, nowait=nowait, of=of, key_share=key_share
      )
      sel = q._compile_state().statement
  
      assert q._for_update_arg.read is read
      assert sel._for_update_arg.read is read
  
      assert q._for_update_arg.nowait is nowait
      assert sel._for_update_arg.nowait is nowait
  
      assert q._for_update_arg.key_share is key_share
      assert sel._for_update_arg.key_share is key_share
  
      eq_(q._for_update_arg.of, assert_q_of)
      eq_(sel._for_update_arg.of, assert_sel_of)
  
imports: from sqlalchemy import exc
  from sqlalchemy import testing
  from sqlalchemy.engine import default
  from sqlalchemy.orm import joinedload
  from sqlalchemy.orm import relationship
  from sqlalchemy.testing import assert_raises_message
  from sqlalchemy.testing import AssertsCompiledSQL
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing.fixtures import fixture_session
  from test.orm import _fixtures
label_desc: Use image node_id 2 for calling the ForUpdateTest obj's underlying member method code with example usage: obj._assert(read, nowait, of, key_share, assert_q_of, assert_sel_of) without return types