docstr: Check that neighbor indices are unique and don't have the row's index.
code: def assert_indices_unique(indices):
      """Check that neighbor indices are unique and don't have the row's index."""
      for row_idx, row in enumerate(indices):
          assert len(set(row)) == len(row)  # Check uniqueness
          assert row_idx not in row
  
file_path: cleanlab/tests/datalab/issue_manager/test_knn_graph.py
imports: import math
  from hypothesis import HealthCheck, given, settings, strategies
  import pytest
  from .conftest import knn_graph_strategy
label_desc: Use image node_id 2 for calling the TestKNNGraph obj's underlying member method code with example usage: obj.assert_indices_unique(indices) without return types