class_docstr: Sets up distributed devices and sharding.
code: def strategy(self):
      if not JAX_MODE and not NUMPY_MODE:
          if self._strategy is None:
              self._strategy = tf.distribute.MirroredStrategy(
                  devices=tf.config.list_logical_devices()
              )
          return self._strategy
      else:
          return None
  
file_path: probability/tensorflow_probability/python/internal/distribute_test_lib.py
imports: import os
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import distribution_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 4 for calling the DistributedTest obj's underlying member method code with example usage: obj.strategy() and returns: self, None