<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def configure(dsn, connection_class=DsnConnection):
 """ configure an interface to be used to query a backend you use this function to configure an Interface using a dsn, then you can get that interface using the get_interface() method dsn -- string -- a properly formatted prom dsn, see DsnConnection for how to format the dsn """

    c = dsnparse.parse(dsn, parse_class=connection_class)
    inter = c.interface
    set_interface(inter, c.name)
    return inter