code: def get_info(self):
          '''Return ResourceInfo instances.'''
          if self._min_disk:
              for path in self._resource_paths:
                  usage = psutil.disk_usage(path)
  
                  yield ResourceInfo(path, usage.free, self._min_disk)
  
          if self._min_memory:
              usage = psutil.virtual_memory()
  
              yield ResourceInfo(None, usage.available, self._min_memoryf get_info(self):
          '''Return ResourceInfo instances.'''
          if self._min_disk:
              for path in self._resource_paths:
                  usage = psutil.disk_usage(path)
  
                  yield ResourceInfo(path, usage.free, self._min_disk)
  
          if self._min_memory:
              usage = psutil.virtual_memory()
  
              yield ResourceInfo(None, usage.available, self._min_memory)
docs: Return ResourceInfo instances.