code: def test_format_date_freq():
      dt = datetime(2015, 11, 5, 18, 42, 2, 3)
      assert format_date_freq().format(dt) == "2015-11-05 18:42:02"
      assert format_date_freq("A").format(dt) == "2015"
      assert format_date_freq("Q").format(dt) == "2015-11"
      assert format_date_freq("M").format(dt) == "2015-11"
      assert format_date_freq("W").format(dt) == "2015-11-05 (w44)"
      assert format_date_freq("D").format(dt) == "2015-11-05"
      assert format_date_freq("B").format(dt) == "2015-11-05"
      assert format_date_freq("H").format(dt) == "2015-11-05 18:42"
      assert (
          format_date_freq("NOT A FREQ").format(dt)
          == "2015-11-05 18:42:02"
      )
  
file_path: tslumen/tests/unit/test_jinja_utils.py
imports: from datetime import datetime
  import pytest
  import numpy
  import pandas
  import jinja2
  from tslumen.jinja_utils import *
label_desc: Use image node_id 7 for calling a global function with example usage: test_format_date_freq() without return types