code: def test_replace_broadcasting(self):
      a = np.array("0,0,0")
      r1 = np.strings.replace(a, "0", "1", np.arange(3))
      assert r1.dtype == a.dtype
      assert_array_equal(r1, np.array(["0,0,0", "1,0,0", "1,1,0"]))
      r2 = np.strings.replace(a, "0", [["1"], ["2"]], np.arange(1, 4))
      assert_array_equal(
          r2,
          np.array(
              [["1,0,0", "1,1,0", "1,1,1"], ["2,0,0", "2,2,0", "2,2,2"]]
          ),
      )
      r3 = np.strings.replace(a, ["0", "0,0", "0,0,0"], "X", MAX)
      assert_array_equal(r3, np.array(["X,X,X", "X,0", "X"]))
  
imports: import pytest
  import operator
  import numpy
  from numpy.testing import assert_array_equal, assert_raises
label_desc: Use image node_id 2 for calling the TestReplaceOnArrays obj's underlying member method code with example usage: obj.test_replace_broadcasting() without return types