code: def simple_broadcast(value, destinations, always_mirrored=False):
      """Broadcast `value` to `destinations` using simple copies."""
      device_map, logical_device = get_device_map_from(destinations)
      devices = device_map.logical_to_actual_devices(logical_device)
      if len(devices) == 1 and not always_mirrored:
          return cross_device_utils.copy_tensor_or_indexed_slices_to_device(
              value, devices[0]
          )
      else:
          value_updates = []
          for d in devices:
              value_updates.append(
                  cross_device_utils.copy_tensor_or_indexed_slices_to_device(
                      value, d
                  )
              )
          return value_lib.regroup(
              device_map, value_updates, wrap_class=value_lib.Mirrored
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import enum
  import six
  from tensorflow.python.client import device_lib
  from tensorflow.python.distribute import cross_device_utils
  from tensorflow.python.distribute import device_util
  from tensorflow.python.distribute import reduce_util
  from tensorflow.python.distribute import values
  from tensorflow.python.eager import context
  from tensorflow.python.framework import kernels
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util.tf_export import tf_export
  from tensorflow.tools.docs import doc_controls
  import tensorflow
  from tensorflow.python.distribute.cross_device_ops import CollectiveAllReduce
  import tensorflow.python.distribute.cross_device_ops
  from byteps.tensorflow.ops import broadcast, _push_pull
  from byteps.tensorflow import local_rank, size
label_desc: Use image node_id 5 for calling a global function with example usage: simple_broadcast(value, destinations, always_mirrored) and returns: cross_device_utils, value_lib