<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pulp_repo_path(connection, repoid):
 """ Given a connection and a repoid, return the url of the repository """

    dl_base = connection.base_url.replace('/pulp/api/v2', '/pulp/repos')
    _m = re.match('(.*)-(.*)', repoid)
    repo = _m.group(1)
    env = _m.group(2)

    return "%s/%s/%s" % (dl_base, env, repo)