code: def collect(
      self,
      path: Union[AimObjectKey, AimObjectPath] = (),
      strict: bool = True,
      resolve_objects: bool = False,
  ) -> AimObject:
      return self.tree.collect(
          self.absolute_path(path), strict, resolve_objects
      )
  
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 6 for calling the SubtreeView obj's underlying member method code with example usage: obj.collect(path, strict, resolve_objects) and returns: self