code: def test_invalid_versions(self) -> None:
      with self.assertRaises(ValueError):
          version_compare.version_compare("1.2", "1.1.0")
  
      with self.assertRaises(ValueError):
          version_compare.version_compare("1.2.0.1", "1.1.0")
  
      # test within same minor version and with special cases
      with self.assertRaises(ValueError):
          self.assertEqual(
              version_compare.version_compare("1.0.7", "1.1.0.dev1"), -1
          )
  
      with self.assertRaises(ValueError):
          self.assertEqual(
              version_compare.version_compare("1.1.0.dev1", "1.1.0rc1"),
              -1,
          )
  
imports: import unittest
  from lightly.utils import version_compare
label_desc: Use image node_id 2 for calling the TestVersionCompare obj's underlying member method code with example usage: obj.test_invalid_versions() without return types