<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def copy_uri_options(hosts, mongodb_uri):
 """Returns a MongoDB URI to hosts with the options from mongodb_uri. """

        if "?" in mongodb_uri:
            options = mongodb_uri.split("?", 1)[1]
        else:
            options = None
        uri = "mongodb://" + hosts
        if options:
            uri += "/?" + options
        return uri