code: def test_check_optional_dependency_when_dependency_is_present():
      small_text.base.OPTIONAL_DEPENDENCIES["numpy"] = "numpy"
      check_optional_dependency("numpy")
  
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 2 for calling the OptionalDependenciesTest obj's underlying member method code with example usage: obj.test_check_optional_dependency_when_dependency_is_present() without return types