docstr: Get a :class:`DeepValueCollection` by expanding the tree of values
docstr_tok: ["Get","a",":","class",":","`","DeepValueCollection","`","by","expanding","the","tree","of","values"]
code: def deep(self):
      """
      Get a :class:`DeepValueCollection` by expanding the tree of values
      """
      if isinstance(self, DeepValueCollection):
          return self
  
      keys = sum(
          [
              ValueCollection._expand_value(
                  f"{k}", self._values[k], "/"
              )
              for k in self._keys
          ],
          [],
      )
  
      return DeepValueCollection(self._values, sort_keys(keys))
  
imports: from typing import Callable, Dict, List, TYPE_CHECKING
  from labml.internal.util.strings import is_pattern_match
label_desc: Use image node_id 6 for calling the ValueCollection obj's underlying member method code with example usage: obj.deep() and returns: DeepValueCollection, self