<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def flatten_container(self, container):
 """ Accepts a kubernetes container and pulls out the nested values into the top level """

        for names in ARG_MAP.values():
            if names[TransformationTypes.KUBERNETES.value]['name'] and \
                            '.' in names[TransformationTypes.KUBERNETES.value]['name']:
                kubernetes_dotted_name = names[TransformationTypes.KUBERNETES.value]['name']
                parts = kubernetes_dotted_name.split('.')
                result = lookup_nested_dict(container, *parts)
                if result:
                    container[kubernetes_dotted_name] = result
        return container