<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_info(raw_info, apply_tag=None):
 """ Parse raw rdoinfo metadata inplace. :param raw_info: raw info to parse :param apply_tag: tag to apply :returns: dictionary containing all packages in rdoinfo """

    parse_releases(raw_info)
    parse_packages(raw_info, apply_tag=apply_tag)
    return raw_info