code: def max_brightness(self):
          
          status_filename = os.path.join(self.path, 'max_brightness')
          with open(status_filename) as status_fp:
              result = status_fp.read()
          status_text = result.strip()
          try:
              status = int(status_text)
          except ValueError:
              return status_text
          return status
docs: Get the device's maximum brightness level.