code: def test_date_partial_output(dates):
      """Test output on a date"""
      expected = dates.select_rows("2011")
      actual = dates.loc["2011"]
      assert_frame_equal(expected, actual, check_freq=False)
  
imports: import datetime
  import re
  import numpy
  import pandas
  import pytest
  from pandas.testing import assert_frame_equal
label_desc: Use image node_id 16 for calling a global function with example usage: test_date_partial_output(dates) without return types