code: def test_monkey_patch_default_variable_placement_strategy_no_ps(self):
      with context.graph_mode():
          with monkey_patch_default_variable_placement_strategy():
              device_fn = tf.compat.v1.train.replica_device_setter(
                  ps_tasks=0
              )
      self.assertIsNone(device_fn)
  
file_path: adanet/adanet/distributed/devices_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  from adanet.distributed.devices import monkey_patch_default_variable_placement_strategy
  import tensorflow.compat.v2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 1 for calling the DevicesTest obj's underlying member method code with example usage: obj.test_monkey_patch_default_variable_placement_strategy_no_ps() without return types