code: def test_hour(self):
      dt = datetime(2013, 1, 1, 2)
      assert self.formatter._format_token(dt, "HH") == "02"
      assert self.formatter._format_token(dt, "H") == "2"
  
      dt = datetime(2013, 1, 1, 13)
      assert self.formatter._format_token(dt, "HH") == "13"
      assert self.formatter._format_token(dt, "H") == "13"
  
      dt = datetime(2013, 1, 1, 2)
      assert self.formatter._format_token(dt, "hh") == "02"
      assert self.formatter._format_token(dt, "h") == "2"
  
      dt = datetime(2013, 1, 1, 13)
      assert self.formatter._format_token(dt, "hh") == "01"
      assert self.formatter._format_token(dt, "h") == "1"
  
      # test that 12-hour time converts to '12' at midnight
      dt = datetime(2013, 1, 1, 0)
      assert self.formatter._format_token(dt, "hh") == "12"
      assert self.formatter._format_token(dt, "h") == "12"
  
imports: from datetime import datetime
  import pytest
  import pytz
  from dateutil import tz
  from arrow import FORMAT_ATOM, FORMAT_COOKIE, FORMAT_RFC822, FORMAT_RFC850, FORMAT_RFC1036, FORMAT_RFC1123, FORMAT_RFC2822, FORMAT_RFC3339, FORMAT_RSS, FORMAT_W3C
  from .utils import make_full_tz_list
label_desc: Use image node_id 5 for calling the TestFormatterFormatToken obj's underlying member method code with example usage: obj.test_hour() without return types