code: def run_command(self):
          
          offline = get_topic_partition_with_error(
              self.cluster_config,
              LEADER_NOT_AVAILABLE_ERROR,
          )
  
          errcode = status_code.OK if not offline else status_code.CRITICAL
          out = _prepare_output(offline, self.args.verbose)
          return errcode, out
docs: Checks the number of offline partitions