def safe_importlib_package_name(package_name: str) -> str:
    """Convert a package name that may have periods in it to one that uses
    hyphens for periods but only if the python version is old.
    Copied from trulens-core to avoid a circular dependency."""

    return (
        package_name
        if sys.version_info >= (3, 10)
        else package_name.replace(".", "-")
    )
Convert a package name that may have periods in it to one that uses
    hyphens for periods but only if the python version is old.
    Copied from trulens-core to avoid a circular dependency.
src/otel/semconv/trulens/otel/semconv/__init__.py