code: def _check_query(query):
      """
      Check query validity with regex
      """
      if not _MULTIPLE_WORD_RE.match(query):
          return False
      else:
          return True
  
imports: import re
  from functools import partial
  from urllib.parse import urlencode
  from geopy import exc
  from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 1 for calling a global function with example usage: _check_query(query) and returns: False, True