code: def finalize(self, index: "ProxyTree"):
      self._rpc_client.run_instruction(
          self._hash,
          self._handler,
          "finalize",
          (ResourceObject(index._handler),),
      )
  
imports: from aim.ext.transport.message_utils import ResourceObject, pack_args
  from aim.ext.transport.remote_resource import RemoteResourceAutoClean
  from aim.storage.treeview import TreeView
  from aim.storage.treeutils import encode_tree
  from aim.storage.treearrayview import TreeArrayView
  from aim.storage.types import AimObject, AimObjectKey, AimObjectPath
  from typing import TYPE_CHECKING, Any, Iterator, Tuple, Union, List
label_desc: Use image node_id 17 for calling the ProxyTree obj's underlying member method code with example usage: obj.finalize(index) without return types