code: def test_historical_date(dataframe):
      """Test conversion raises exception for date outside API range."""
      with pytest.raises(ValueError):
          assert dataframe.convert_currency(
              "a",
              "USD",
              "AUD",
              make_new_column=True,
              historical_date=date(1982, 10, 27),
          )
  
file_path: pyjanitor/tests/finance/test_convert_currency.py
imports: from datetime import date, datetime
  import pytest
  import requests
  from janitor.finance import convert_currency
label_desc: Use image node_id 4 for calling a global function with example usage: test_historical_date(dataframe) without return types