code: def test_query_chooser(self):
      m1 = mock.Mock()
  
      with testing.expect_deprecated(
          "The ``query_chooser`` parameter is deprecated; please use",
      ):
          s = ShardedSession(
              shard_chooser=m1.shard_chooser,
              identity_chooser=m1.identity_chooser,
              query_chooser=m1.query_chooser,
          )
  
      m2 = mock.Mock()
      s.execute_chooser(m2)
  
      eq_(m1.mock_calls, [mock.call.query_chooser(m2.statement)])
  
imports: from sqlalchemy import Column
  from sqlalchemy import Integer
  from sqlalchemy import testing
  from sqlalchemy.ext.automap import automap_base
  from sqlalchemy.ext.horizontal_shard import ShardedSession
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import fixtures
  from sqlalchemy.testing import mock
  from .None import test_mutable
  from .test_mutable import Foo
  from ..orm._fixtures import FixtureTest
label_desc: Use image node_id 1 for calling the HorizontalShardTest obj's underlying member method code with example usage: obj.test_query_chooser() without return types