def METHOD_NAME(self, kwargs):
    pushed_immutable_objects = self._pushed_immutable_objects
    return {k: (pushed_immutable_objects.get(v.uid, (v, 0))[0] if isinstance(v, ImmutableObject) else
                v.remote_id if isinstance(v, RemoteObject) else
                v)
            for k, v in kwargs.items()}