def METHOD_NAME(src_params, own_state):
    copied_keys = []
    for name, param in src_params.items():
        if 'module.' == name[0:7]:
            name = name[7:]
        if '.module.' not in list(own_state.keys())[0]:
            name = name.replace('.module.', '.')
        if (name in own_state) and (own_state[name].shape
                                    == param.shape):
            own_state[name].copy_(param)
            copied_keys.append(name)