code: def get_summarized_data(self):
      dim = self.dim()
  
      if dim == 0:
          return self
  
      if dim == 1:
          if self.size_dim(0) > 2 * PRINT_OPTS.edgeitems:
              return np.concatenate(
                  (
                      self[: PRINT_OPTS.edgeitems],
                      self[-PRINT_OPTS.edgeitems :],
                  )
              )
          else:
              return self
  
      if self.size_dim(0) > 2 * PRINT_OPTS.edgeitems:
          start = [self[i] for i in range(0, PRINT_OPTS.edgeitems)]
          end = [
              self[i]
              for i in range(
                  len(self) - PRINT_OPTS.edgeitems, len(self)
              )
          ]
          return np.stack(
              [get_summarized_data(x) for x in (start + end)]
          )
      else:
          return np.stack([get_summarized_data(x) for x in self])
  
file_path: caer/caer/coreten/_tensor_str.py
imports: import math
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: get_summarized_data() and returns: self, np, np, np, self