code: def test_async_sleep_error(self):
      # It is import that ComputeAsync() calls its done() callback if it returns
      # early due to an error.
      func = tf.function(lambda: sleep_op.AsyncSleep(-1.0))
      with self.assertRaisesRegex(
          errors_impl.InvalidArgumentError,
          "Input `delay` must be non-negative.",
      ):
          self.evaluate(func())
  
file_path: tensorflow-upstream/tensorflow/examples/custom_ops_doc/sleep/sleep_test.py
imports: import time
  import tensorflow
  from tensorflow.examples.custom_ops_doc.sleep import sleep_op
  from tensorflow.python.framework import errors_impl
label_desc: Use image node_id 4 for calling the SleepTest obj's underlying member method code with example usage: obj.test_async_sleep_error() without return types