code: def test_enable_eager_for_tf_1(
      self, mock_eager_execution, mock_is_tf_v1
  ):
      mock_is_tf_v1.return_value = False
      utils.enable_eager_for_tf_1()
      # Work around as assert_not_called is not supported in py35
      self.assertFalse(mock_eager_execution.called)
  
      mock_is_tf_v1.return_value = True
      utils.enable_eager_for_tf_1()
      mock_eager_execution.assert_called_once_with()
  
imports: from unittest import mock
  import tensorflow
  from tensorflow_cloud.tuner import cloud_fit_utils
label_desc: Use image node_id 1 for calling the CloudFitUtilitiesTest obj's underlying member method code with example usage: obj.test_enable_eager_for_tf_1(mock_eager_execution, mock_is_tf_v1) without return types