code: def _check_wb_country(country: str):
      """Check that world bank country is in supported set."""
      if (country not in wb_country_dict.keys()) & (
          country not in wb_country_dict.values()  # noqa: PD011
      ):
          raise ValueError(
              f"country {country} not in supported World Bank country dict, "
              f"{wb_country_dict}"
          )
  
file_path: pyjanitor/janitor/finance.py
imports: import json
  from datetime import date
  from functools import lru_cache
  from typing import Optional
  import pandas
  import pandas_flavor
  import requests
  from janitor.errors import JanitorError
  from .utils import check, deprecated_alias, is_connected
label_desc: Use image node_id 2 for calling a global function with example usage: _check_wb_country(country) without return types