code: def check_comparison_other_type(self, obj1, obj2):
      with pytest.raises(TypeError):
          obj1 < obj2
      with pytest.raises(TypeError):
          obj1 <= obj2
      with pytest.raises(TypeError):
          obj1 > obj2
      with pytest.raises(TypeError):
          obj1 >= obj2
      with pytest.raises(TypeError):
          obj2 < obj1
      with pytest.raises(TypeError):
          obj2 <= obj1
      with pytest.raises(TypeError):
          obj2 > obj1
      with pytest.raises(TypeError):
          obj2 >= obj1
  
imports: import re
  import threading
  import unittest
  import pytest
  import cupy
  from cupy import cuda
  from cupy import testing
label_desc: Use image node_id 7 for calling the TestDeviceComparison obj's underlying member method code with example usage: obj.check_comparison_other_type(obj1, obj2) without return types