code: def test_duplicate_array_index_chains(nest, x, y):
      x = ivy.array(x)
      y = ivy.array(y)
      nest[0]["a"] = nest[0]["b"]["d"] = nest[1][0] = x
      nest[0]["b"]["c"] = nest[1][1] = y
      duplicate_index_chains = ivy.duplicate_array_index_chains(nest)
      assert duplicate_index_chains[0] == [
          [0, "a"],
          [0, "b", "d"],
          [1, 0],
      ]
      assert duplicate_index_chains[1] == [[0, "b", "c"], [1, 1]]
  
imports: import copy
  import warnings
  import pytest
  import numpy
  import ivy
label_desc: Use image node_id 9 for calling a global function with example usage: test_duplicate_array_index_chains(nest, x, y) without return types