code: def get_volumes(self):
          
  
          if self.volumes:
              volumes = []
              for v in self.volumes:
                  volumes.extend(v.get_volumes())
              volumes.append(self)
              return volumes
          else:
              return [self]
docs: Recursively gets a list of all subvolumes and the current volume.