code: def _safe_tensor_scatter_nd_update(tensor, indices, updates):
      if tensorshape_util.num_elements(tensor.shape) == 0:
          return tensor
      return tf.tensor_scatter_nd_update(tensor, indices, updates)
  
imports: import collections
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import broadcast_util
  from tensorflow_probability.python.internal import distribute_lib
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import samplers
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.math import generic
  from tensorflow_probability.python.mcmc import kernel
  from tensorflow_probability.python.mcmc.internal import leapfrog_integrator
  from tensorflow_probability.python.mcmc.internal import util
label_desc: Use image node_id 7 for calling a global function with example usage: _safe_tensor_scatter_nd_update(tensor, indices, updates) and returns: tf, tensor