class_docstr: Helper class to conveniently convert between partition list and partition string.
class_docstr_tok: ["Helper","class","to","conveniently","convert","between","partition","list","and","partition","string","."]
code: def _check_partition_list(partition_list):
      if not partition_list:
          logging.warning("Partition list is empty.")
          return False
      all_one = True
      active_axis = 0
      for p in partition_list:
          if p == 0:
              return False
          if p > 1:
              all_one = False
              active_axis += 1
      if all_one:
          logging.warning(
              "Partition list is trivial -- num_split is 1 on every axis."
          )
          return False
      if active_axis > 1:
          logging.warning(
              "Currently AutoDist only support partitioning along one axis."
          )
          return False
      return True
  
imports: import collections
  import re
  from google.protobuf.pyext._message import RepeatedScalarContainer
  from tensorflow.core.framework import graph_pb2
  from tensorflow.python import ops
  from tensorflow.python.framework import dtypes, versions
  from tensorflow.python.ops import embedding_ops
  from tensorflow.python.ops import variable_scope, array_ops, math_ops
  from tensorflow.python.ops.variables import Variable, PartitionedVariable
  from tensorflow.python.util.compat import as_bytes
  from autodist.const import AUTODIST_TO_DELETE_SCOPE, COLOCATION_PREFIX
  from autodist.checkpoint.saver import Saver
  from autodist.graph_item import GraphItem, Info
  from autodist.kernel.common.op_info import MUTABLE_STATE_OP_DIRECT_CONSUMER_OPS
  from autodist.kernel.common.utils import get_op_name, get_consumers, update_consumers, parse_name_scope
  from autodist.kernel.common.variable_utils import is_read_var_op
  from autodist.kernel.kernel import Kernel
  from autodist.utils import logging
label_desc: Use image node_id 2 for calling the PartitionerConfig obj's underlying member method code with example usage: obj._check_partition_list(partition_list) and returns: True, False, False, False, False