code: def test_fragment_ambiguous(self):
      base = registry()
      f1 = MockClass(base, "foo.bar.Foo")
      f2 = MockClass(base, "foo.alt.Foo")
      f3 = MockClass(base, "bat.alt.Foo")
      clsregistry.add_class("Foo", f1, base._class_registry)
      clsregistry.add_class("Foo", f2, base._class_registry)
      clsregistry.add_class("Foo", f3, base._class_registry)
      name_resolver, resolver = clsregistry._resolver(f1, MockProp())
  
      gc_collect()
  
      assert_raises_message(
          exc.InvalidRequestError,
          'Multiple classes found for path "alt.Foo" in the registry '
          "of this declarative base. Please use a fully "
          "module-qualified path.",
          resolver("alt.Foo"),
      )
  
      assert_raises_message(
          exc.InvalidRequestError,
          'Multiple classes found for path "alt.Foo" in the registry '
          "of this declarative base. Please use a fully "
          "module-qualified path.",
          name_resolver("alt.Foo"),
      )
  
imports: from sqlalchemy import Column
  from sqlalchemy import exc
  from sqlalchemy import Integer
  from sqlalchemy import MetaData
  from sqlalchemy import testing
  from sqlalchemy.orm import clsregistry
  from sqlalchemy.orm import registry
  from sqlalchemy.orm import relationship
  from sqlalchemy.testing import assert_raises_message
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import expect_raises_message
  from sqlalchemy.testing import fixtures
  from sqlalchemy.testing import is_
  from sqlalchemy.testing import mock
  from sqlalchemy.testing.assertions import expect_warnings
  from sqlalchemy.testing.util import gc_collect
label_desc: Use image node_id 4 for calling the ClsRegistryTest obj's underlying member method code with example usage: obj.test_fragment_ambiguous() without return types