code: def test_torchbearer_fn(self):
      from torchbearer.magics import torchbearer as tb
      from torchbearer.magics import is_notebook
  
      self.assertFalse(is_notebook())
      tb("notebook")
      self.assertTrue(is_notebook())
      tb("normal")
      self.assertFalse(is_notebook())
  
imports: import unittest
label_desc: Use image node_id 1 for calling the TestMagics obj's underlying member method code with example usage: obj.test_torchbearer_fn() without return types