<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def inject_include_info(self, path, config, include_type):
 """ Wrap a dictionary into dict that contains config itself and include info """

        if isinstance(config, list):
            config = config[0]

        ret = OrderedDict()

        ret[include_flag] = IncludeInfo(type=include_type, path=path)
        ret['config'] = config

        return ret