code: def verify_indices_all_unique(obj):
      """
      Check that all axes of a pandas object are unique.
  
      Parameters
      ----------
      obj : pd.Series / pd.DataFrame / pd.Panel
          The object to validate.
  
      Returns
      -------
      obj : pd.Series / pd.DataFrame / pd.Panel
          The validated object, unchanged.
  
      Raises
      ------
      ValueError
          If any axis has duplicate entries.
      """
      axis_names = [
          ("index",),  # Series
          ("index", "columns"),  # DataFrame
          ("items", "major_axis", "minor_axis"),  # Panel
      ][
          obj.ndim - 1
      ]  # ndim = 1 should go to entry 0,
  
      for axis_name, index in zip(axis_names, obj.axes):
          if index.is_unique:
              continue
  
          raise ValueError(
              "Duplicate entries in {type}.{axis}: {dupes}.".format(
                  type=type(obj).__name__,
                  axis=axis_name,
                  dupes=sorted(index[index.duplicated()]),
              )
          )
      return obj
  
imports: from datetime import tzinfo
  from functools import partial
  from operator import attrgetter
  from numpy import dtype
  import pandas
  from pytz import timezone
  from six import iteritems, string_types, PY3
  from toolz import valmap, complement, compose
  import toolz.curried.operator
  from zipline.utils.compat import wraps
  from zipline.utils.functional import getattrs
  from zipline.utils.preprocess import call, preprocess
label_desc: Use image node_id 1 for calling a global function with example usage: verify_indices_all_unique(obj) and returns: obj