code: def confirm_unique_index(data):
      """Confirms dataframe has unique index values, and if not,
      throws ValueError with helpful log message"""
  
      if not data.index.is_unique:
          _logger.error("Index has duplicate values")
          _logger.info(
              "If index values do not matter, consider running "
              + ".reset_index() on the dataframe before partitioning"
          )
          raise ValueError("Index is not uniquely valued")
  
imports: from collections import namedtuple
  import logging
  from abc import ABC, abstractmethod
  import numpy
  import pandas
  from seedbank import numpy_rng
label_desc: Use image node_id 8 for calling a global function with example usage: confirm_unique_index(data) without return types