def _toconf(self, conf):
result = conf<EOL>if result is None:<EOL><INDENT>result = Configuration()<EOL><DEDENT>elif isinstance(result, Category):<EOL><INDENT>result = configuration(result)<EOL><DEDENT>elif isinstance(result, Parameter):<EOL><INDENT>result = configuration(category('<STR_LIT>', result))<EOL><DEDENT>elif isinstance(result, list):<EOL><INDENT>result = configuration(category('<STR_LIT>', *result))<EOL><DEDENT>return result<EOL>
Convert input parameter to a Configuration.

        :param conf: configuration to convert to a Configuration object.
        :type conf: Configuration, Category or Parameter.

        :rtype: Configuration