code: def test_join_midx_string():
      # GH#49277
      midx = MultiIndex.from_arrays(
          [
              Series(["a", "a", "c"], dtype=StringDtype()),
              Series(["a", "b", "c"], dtype=StringDtype()),
          ],
          names=["a", "b"],
      )
      midx2 = MultiIndex.from_arrays(
          [
              Series(["a"], dtype=StringDtype()),
              Series(["c"], dtype=StringDtype()),
          ],
          names=["a", "c"],
      )
      result = midx.join(midx2, how="inner")
      expected = MultiIndex.from_arrays(
          [
              Series(["a", "a"], dtype=StringDtype()),
              Series(["a", "b"], dtype=StringDtype()),
              Series(["c", "c"], dtype=StringDtype()),
          ],
          names=["a", "b", "c"],
      )
      tm.assert_index_equal(result, expected)
  
file_path: pandas/pandas/tests/indexes/multi/test_join.py
imports: import numpy
  import pytest
  from pandas import DataFrame, Index, Interval, MultiIndex, Series, StringDtype
  import pandas._testing
label_desc: Use image node_id 9 for calling a global function with example usage: test_join_midx_string() without return types