code: def test_append_to_uri_path_preserves_uri_schemes_hosts_queries_and_fragments():
      validate_append_to_uri_path_test_cases(
          [
              ("dbscheme+dbdriver:", "", "dbscheme+dbdriver:"),
              (
                  "dbscheme+dbdriver:",
                  "subpath",
                  "dbscheme+dbdriver:subpath",
              ),
              (
                  "dbscheme+dbdriver:path",
                  "subpath",
                  "dbscheme+dbdriver:path/subpath",
              ),
              (
                  "dbscheme+dbdriver://host/path",
                  "/subpath",
                  "dbscheme+dbdriver://host/path/subpath",
              ),
              (
                  "dbscheme+dbdriver:///path",
                  "subpath",
                  "dbscheme+dbdriver:/path/subpath",
              ),
              (
                  "dbscheme+dbdriver:?somequery",
                  "subpath",
                  "dbscheme+dbdriver:subpath?somequery",
              ),
              (
                  "dbscheme+dbdriver:?somequery",
                  "/subpath",
                  "dbscheme+dbdriver:/subpath?somequery",
              ),
              (
                  "dbscheme+dbdriver:/?somequery",
                  "subpath",
                  "dbscheme+dbdriver:/subpath?somequery",
              ),
              (
                  "dbscheme+dbdriver://?somequery",
                  "subpath",
                  "dbscheme+dbdriver:subpath?somequery",
              ),
              (
                  "dbscheme+dbdriver:///?somequery",
                  "/subpath",
                  "dbscheme+dbdriver:/subpath?somequery",
              ),
              (
                  "dbscheme+dbdriver:#somefrag",
                  "subpath",
                  "dbscheme+dbdriver:subpath#somefrag",
              ),
              (
                  "dbscheme+dbdriver:#somefrag",
                  "/subpath",
                  "dbscheme+dbdriver:/subpath#somefrag",
              ),
              (
                  "dbscheme+dbdriver:/#somefrag",
                  "subpath",
                  "dbscheme+dbdriver:/subpath#somefrag",
              ),
              (
                  "dbscheme+dbdriver://#somefrag",
                  "subpath",
                  "dbscheme+dbdriver:subpath#somefrag",
              ),
              (
                  "dbscheme+dbdriver:///#somefrag",
                  "/subpath",
                  "dbscheme+dbdriver:/subpath#somefrag",
              ),
              (
                  "dbscheme+dbdriver://root:password?creds=creds",
                  "subpath",
                  "dbscheme+dbdriver://root:password/subpath?creds=creds",
              ),
              (
                  "dbscheme+dbdriver://root:password/path/?creds=creds",
                  "/subpath/anotherpath",
                  "dbscheme+dbdriver://root:password/path/subpath/anotherpath?creds=creds",
              ),
              (
                  "dbscheme+dbdriver://root:password///path/?creds=creds",
                  "subpath/anotherpath",
                  "dbscheme+dbdriver://root:password///path/subpath/anotherpath?creds=creds",
              ),
              (
                  "dbscheme+dbdriver://root:password///path/?creds=creds",
                  "/subpath",
                  "dbscheme+dbdriver://root:password///path/subpath?creds=creds",
              ),
              (
                  "dbscheme+dbdriver://root:password#myfragment",
                  "/subpath",
                  "dbscheme+dbdriver://root:password/subpath#myfragment",
              ),
              (
                  "dbscheme+dbdriver://root:password//path/#fragmentwith$pecial@",
                  "subpath/anotherpath",
                  "dbscheme+dbdriver://root:password//path/subpath/anotherpath#fragmentwith$pecial@",
              ),
              (
                  "dbscheme+dbdriver://root:password@host?creds=creds#fragmentwith$pecial@",
                  "subpath",
                  "dbscheme+dbdriver://root:password@host/subpath?creds=creds#fragmentwith$pecial@",
              ),
              (
                  "dbscheme+dbdriver://root:password@host.com/path?creds=creds#*frag@*",
                  "subpath/dir",
                  "dbscheme+dbdriver://root:password@host.com/path/subpath/dir?creds=creds#*frag@*",
              ),
              (
                  "dbscheme-dbdriver://root:password@host.com/path?creds=creds#*frag@*",
                  "subpath/dir",
                  "dbscheme-dbdriver://root:password@host.com/path/subpath/dir?creds=creds#*frag@*",
              ),
              (
                  "dbscheme+dbdriver://root:password@host.com/path?creds=creds,param=value#*frag@*",
                  "subpath/dir",
                  "dbscheme+dbdriver://root:password@host.com/path/subpath/dir?"
                  "creds=creds,param=value#*frag@*",
              ),
          ]
      )
  
imports: import pathlib
  import posixpath
  import pytest
  from mlflow.exceptions import MlflowException
  from mlflow.store.db.db_types import DATABASE_ENGINES
  from mlflow.utils.os import is_windows
  from mlflow.utils.uri import add_databricks_profile_info_to_artifact_uri, append_to_uri_path, append_to_uri_query_params, dbfs_hdfs_uri_to_fuse_path, extract_and_normalize_path, extract_db_type_from_uri, get_databricks_profile_uri_from_artifact_uri, get_db_info_from_uri, get_uri_scheme, is_databricks_acled_artifacts_uri, is_databricks_uri, is_fuse_or_uc_volumes_uri, is_http_uri, is_local_uri, is_valid_dbfs_uri, remove_databricks_profile_info_from_artifact_uri, resolve_uri_if_local, validate_path_is_safe
label_desc: Use image node_id 14 for calling a global function with example usage: test_append_to_uri_path_preserves_uri_schemes_hosts_queries_and_fragments() without return types