docstr: Entry points should only be exposed for the first package
  on sys.path with a given name (even when normalized).
code: def test_entry_points_unique_packages_normalized(self):
      """
      Entry points should only be exposed for the first package
      on sys.path with a given name (even when normalized).
      """
      alt_site_dir = self.fixtures.enter_context(fixtures.tempdir())
      self.fixtures.enter_context(self.add_sys_path(alt_site_dir))
      alt_pkg = {
          "DistInfo_pkg-1.1.0.dist-info": {
              "METADATA": """
                  Name: distinfo-pkg
                  Version: 1.1.0
                  """,
              "entry_points.txt": """
                  [entries]
                  main = mod:altmain
              """,
          },
      }
      fixtures.build_files(alt_pkg, alt_site_dir)
      entries = entry_points(group="entries")
      assert not any(
          ep.dist.name == "distinfo-pkg" and ep.dist.version == "1.0.0"
          for ep in entries
      )
      # ns:sub doesn't exist in alt_pkg
      assert "ns:sub" not in entries.names
  
imports: import re
  import textwrap
  import unittest
  import warnings
  import importlib
  import contextlib
  from .None import fixtures
  from importlib.metadata import Distribution, PackageNotFoundError, distribution, entry_points, files, metadata, requires, version
label_desc: Use image node_id 10 for calling the APITests obj's underlying member method code with example usage: obj.test_entry_points_unique_packages_normalized() without return types