code: def test_multi_index_rows():
      df = pd.DataFrame(
          {
              "A": np.array(
                  [[0, 1, 2], np.nan, [], (3, 4)], dtype=object
              ),
              "B": 1,
          },
          index=pd.MultiIndex.from_tuples(
              [("a", 1), ("a", 2), ("b", 1), ("b", 2)]
          ),
      )
  
      result = df.explode("A")
      expected = pd.DataFrame(
          {
              "A": pd.Series(
                  [0, 1, 2, np.nan, np.nan, 3, 4],
                  index=pd.MultiIndex.from_tuples(
                      [
                          ("a", 1),
                          ("a", 1),
                          ("a", 1),
                          ("a", 2),
                          ("b", 1),
                          ("b", 2),
                          ("b", 2),
                      ]
                  ),
                  dtype=object,
              ),
              "B": 1,
          }
      )
      tm.assert_frame_equal(result, expected)
  
file_path: pandas/pandas/tests/frame/methods/test_explode.py
imports: import re
  import numpy
  import pytest
  import pandas
  import pandas._testing
label_desc: Use image node_id 4 for calling a global function with example usage: test_multi_index_rows() without return types