code: def test_unwrap(self) -> None:
      self.assertEqual(self.ok.unwrap(), 0)
      with self.assertRaises(UnwrapError):
          self.ok.unwrap_err()
      self.assertEqual(self.ok.unwrap_or(1), 0)
      self.assertEqual(self.ok.unwrap_or_else(1), 0)
  
      with self.assertRaises(UnwrapError):
          self.err.unwrap()
      self.assertEqual(self.err.unwrap_err(), "yikes")
      self.assertEqual(self.err.unwrap_or(1), 1)
      self.assertEqual(self.err.unwrap_or_else(lambda s: 2), 2)
  
file_path: Ax/ax/utils/common/tests/test_result.py
imports: from ax.utils.common.result import Err, Ok, Result, UnwrapError
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 6 for calling the ResultTest obj's underlying member method code with example usage: obj.test_unwrap() without return types