code: def _dict_merge_right(dict_left, dict_right, merge_method):
      
      new_dict = deepcopy(dict_left)
      for key, value in dict_right.items():
          if key not in new_dict:
              new_dict[key] = value
          else:
              recurse = (merge_method == 'take_right_deep' and
                         isinstance(dict_left[key], dict) and
                         isinstance(dict_right[key], dict))
              if recurse:
                  new_dict[key] = dict_merge(dict_left[key],
                                             dict_right[key],
                                             merge_method='take_right_deep')
              else:
                  new_dict[key] = value
      return new_dict
docs: See documentation of mpu.datastructures.dict_merge.