code: def _replace_unique_item(xs, old, new):
      indices = [i for i, x in enumerate(xs) if x is old]
      assert len(indices) == 1
      xs[indices[0]] = new
  
imports: import chainer
  from chainer.links import Linear
  from chainerrl.links.noisy_linear import FactorizedNoisyLinear
  from chainerrl.links.sequence import Sequence
label_desc: Use image node_id 3 for calling a global function with example usage: _replace_unique_item(xs, old, new) without return types