code: def test_duplicate_indices():
      """Assert that an error is raised when there are duplicate indices."""
      data = pycaret.datasets.get_data("juice")
      with pytest.raises(ValueError, match=".*duplicate indices.*"):
          pycaret.classification.setup(
              data=data,
              test_data=data,
              index=True,
          )
  
imports: import io
  import numpy
  import pandas
  import pytest
  from imblearn.over_sampling import ADASYN
  from scipy.sparse import csr_matrix
  from sklearn.decomposition import PCA
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.pipeline import Pipeline
  from sklearn.preprocessing import StandardScaler
  import pycaret.classification
  import pycaret.datasets
  import pycaret.regression
label_desc: Use image node_id 11 for calling a global function with example usage: test_duplicate_indices() without return types