code: def test_currency_year_available(dataframe):
      """Test inflation calculation fails with unavailable currency_year."""
      with pytest.raises(ValueError):
          assert dataframe.inflate_currency(
              "a", country="GHA", currency_year=1962, to_year=2010
          )
  
file_path: pyjanitor/tests/finance/test_inflate_currency.py
imports: import pytest
  import requests
  from janitor.finance import _inflate_currency, inflate_currency
label_desc: Use image node_id 11 for calling a global function with example usage: test_currency_year_available(dataframe) without return types