docstr: StreamlitCallbackHandler is imported by LangChain itself, and so it
  must always be importable from the same location.
docstr_tok: ["StreamlitCallbackHandler","is","imported","by","LangChain","itself",",","and","so","it","must","always","be","importable","from","the","same","location","."]
code: def test_import_path(self):
      """StreamlitCallbackHandler is imported by LangChain itself, and so it
      must always be importable from the same location.
      """
  
      # We exec a string here to prevent the import path from being updated
      # by an IDE during a refactor.
      exec(
          "from streamlit.external.langchain import StreamlitCallbackHandler"
      )
  
file_path: streamlit/lib/tests/streamlit/external/langchain/streamlit_callback_handler_test.py
imports: from __future__ import annotations
  import unittest
  from pathlib import Path
  from unittest.mock import MagicMock
  import pytest
  import semver
  from google.protobuf.json_format import MessageToDict
  import streamlit
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling the StreamlitCallbackHandlerAPITest obj's underlying member method code with example usage: obj.test_import_path() without return types