code: def test_partial_slicing_with_multiindex(self):
      # GH 4758
      # partial string indexing with a multi-index buggy
      df = DataFrame(
          {
              "ACCOUNT": ["ACCT1", "ACCT1", "ACCT1", "ACCT2"],
              "TICKER": ["ABC", "MNP", "XYZ", "XYZ"],
              "val": [1, 2, 3, 4],
          },
          index=date_range(
              "2013-06-19 09:30:00", periods=4, freq="5min"
          ),
      )
      df_multi = df.set_index(["ACCOUNT", "TICKER"], append=True)
  
      expected = DataFrame(
          [[1]], index=Index(["ABC"], name="TICKER"), columns=["val"]
      )
      result = df_multi.loc[("2013-06-19 09:30:00", "ACCT1")]
      tm.assert_frame_equal(result, expected)
  
      expected = df_multi.loc[
          (Timestamp("2013-06-19 09:30:00", tz=None), "ACCT1", "ABC")
      ]
      result = df_multi.loc[("2013-06-19 09:30:00", "ACCT1", "ABC")]
      tm.assert_series_equal(result, expected)
  
      # partial string indexing on first level, scalar indexing on the other two
      result = df_multi.loc[("2013-06-19", "ACCT1", "ABC")]
      expected = df_multi.iloc[:1].droplevel([1, 2])
      tm.assert_frame_equal(result, expected)
  
imports: from datetime import datetime
  import numpy
  import pytest
  from pandas import DataFrame, DatetimeIndex, Index, MultiIndex, Series, Timedelta, Timestamp, date_range
  import pandas._testing
label_desc: Use image node_id 16 for calling the TestSlicing obj's underlying member method code with example usage: obj.test_partial_slicing_with_multiindex() without return types