code: def check(self):
          '''Check resource levels.
  
           Returns:
              None, ResourceInfo: If None is provided, no levels are exceeded.
                  Otherwise, the first ResourceInfo exceeding limits is returned.
          '''
  
          for info in self.get_info():
              if info.free < info.limit:
                  return inff check(self):
          '''Check resource levels.
  
           Returns:
              None, ResourceInfo: If None is provided, no levels are exceeded.
                  Otherwise, the first ResourceInfo exceeding limits is returned.
          '''
  
          for info in self.get_info():
              if info.free < info.limit:
                  return info
docs: Check resource levels.
  
           Returns:
              None, ResourceInfo: If None is provided, no levels are exceeded.
                  Otherwise, the first ResourceInfo exceeding limits is returned.