def interface_to_str(interface):
if isinstance(interface, ModuleType):<EOL><INDENT>interface = interface.__name__<EOL><DEDENT>return re.sub(r"<STR_LIT>", "<STR_LIT>", interface)<EOL>
Give a string representation for an optlang interface.

    Parameters
    ----------
    interface : string, ModuleType
        Full name of the interface in optlang or cobra representation.
        For instance 'optlang.glpk_interface' or 'optlang-glpk'.

    Returns
    -------
    string
       The name of the interface as a string