code: def setUp(self):
      super().setUp()
      # Need at least 2 devices for distribution related tests.
      cpus = tf.config.list_physical_devices("CPU")
      context._reset_context()
      tf.config.set_logical_device_configuration(
          cpus[0],
          [
              tf.config.LogicalDeviceConfiguration(),
              tf.config.LogicalDeviceConfiguration(),
          ],
      )
      self.strategy = tf.distribute.MirroredStrategy(["CPU:0", "CPU:1"])
  
file_path: keras/keras/backend/tensorflow/optimizer_distribute_test.py
imports: import numpy
  import pytest
  import tensorflow
  from tensorflow.python.eager import context
  from keras import backend
  from keras import testing
  from keras.optimizers.sgd import SGD
label_desc: Use image node_id 1 for calling the OptimizerDistributeTest obj's underlying member method code with example usage: obj.setUp() without return types