code: def test_check_optional_dependency_when_dependency_is_not_registered(
      self,
  ):
      expected_msg = "The given dependency 'not_registered_in_optional_dependencies' is not"
      with self.assertRaisesRegex(ValueError, expected_msg):
          check_optional_dependency(
              "not_registered_in_optional_dependencies"
          )
  
file_path: small-text/tests/unit/small_text/test_base.py
imports: import unittest
  import small_text
  from small_text.base import check_optional_dependency
  from small_text.exceptions import MissingOptionalDependencyError
label_desc: Use image node_id 3 for calling the OptionalDependenciesTest obj's underlying member method code with example usage: obj.test_check_optional_dependency_when_dependency_is_not_registered() without return types