code: def testRequiresIPythonExecutes(self):
      self.foo_called = False
  
      def foo():
          self.foo_called = True
  
      notebook_utils.requires_ipython(foo)()
      self.assertTrue(self.foo_called)
  
imports: import builtins
  import tensorflow
  from tfx.orchestration.experimental.interactive import notebook_utils
label_desc: Use image node_id 2 for calling the NotebookUtilsTest obj's underlying member method code with example usage: obj.testRequiresIPythonExecutes() without return types