code: def copy_uri_options(hosts, mongodb_uri):
          
          if "?" in mongodb_uri:
              options = mongodb_uri.split("?", 1)[1]
          else:
              options = None
          uri = "mongodb://" + hosts
          if options:
              uri += "/?" + options
          return uri
docs: Returns a MongoDB URI to hosts with the options from mongodb_uri.