code: def __delitem__(self, path: Union[AimObjectKey, AimObjectPath]):
      if isinstance(path, (int, str)):
          path = (path,)
      assert path
  
      *path, last_key = path
      container = self.container
      for key in path:
          container = container[key]
  
      del container[last_key]
  
imports: from copy import deepcopy
  from aim.storage.types import CustomObjectBase
  from aim.storage.types import AimObject, AimObjectKey, AimObjectPath
  from aim.storage.treearrayview import TreeArrayView
  from aim.storage.treeview import TreeView
  from typing import Any, Iterator, Tuple, Union
label_desc: Use image node_id 5 for calling the InMemoryTreeView obj's underlying member method code with example usage: obj.__delitem__(path) without return types