code: def test_datatypes_check(dataframe):
      """Test inflation calculation fails when provided invalid types."""
      with pytest.raises(TypeError):
          assert dataframe.inflate_currency(
              "a", country=123, currency_year=1960, to_year=2018
          )
          assert dataframe.inflate_currency(
              "a", country="USA", currency_year="b", to_year=2018
          )
          assert dataframe.inflate_currency(
              "a", country="USA", currency_year=1960, to_year="b"
          )
  
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 8 for calling a global function with example usage: test_datatypes_check(dataframe) without return types