code: def test_prepare_location_that_fail(location, message):
      with pytest.raises(ValueError) as exception:
          _prepare_location(location)
  
      assert message == exception.value.args[0]
  
imports: from unittest import mock
  import pytest
  from pandas import DataFrame
  from lets_plot.geo_data import geocode
  from lets_plot.geo_data.geocoder import _to_scope
  from lets_plot.geo_data.geocodes import _ensure_is_list, Geocodes, DF_COLUMN_ID, DF_COLUMN_FOUND_NAME, DF_COLUMN_CENTROID, DF_COLUMN_POSITION, DF_COLUMN_LIMIT
  from lets_plot.geo_data.gis.geocoding_service import GeocodingService
  from lets_plot.geo_data.gis.request import MapRegion, RegionQuery, GeocodingRequest, PayloadKind, ExplicitRequest, AmbiguityResolver
  from lets_plot.geo_data.gis.response import LevelKind, FeatureBuilder, GeoPoint, Answer
  from lets_plot.geo_data.livemap_helper import _prepare_location, RegionKind, _prepare_parent, LOCATION_LIST_ERROR_MESSAGE, LOCATION_DATAFRAME_ERROR_MESSAGE
  from geo_data_test_util import make_geocode_region, make_success_response, features_to_answers, features_to_queries, COLUMN_NAME_CITY
label_desc: Use image node_id 14 for calling a global function with example usage: test_prepare_location_that_fail(location, message) without return types