<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _populate_alternate_kwargs(kwargs):
 """ Translates the parsed arguments into a format used by generic ARM commands such as the resource and lock commands. """


    resource_namespace = kwargs['namespace']
    resource_type = kwargs.get('child_type_{}'.format(kwargs['last_child_num'])) or kwargs['type']
    resource_name = kwargs.get('child_name_{}'.format(kwargs['last_child_num'])) or kwargs['name']

    _get_parents_from_parts(kwargs)
    kwargs['resource_namespace'] = resource_namespace
    kwargs['resource_type'] = resource_type
    kwargs['resource_name'] = resource_name
    return kwargs