class_docstr: Location container 
class_docstr_tok: ["Location","container"]
code: def _check_input(self, location):
      # Checking for a LatLng String
      if isinstance(location, string_types):
          expression = r"[-]?\d+[.]?[-]?[\d]+"
          pattern = re.compile(expression)
          match = pattern.findall(location)
          if len(match) == 2:
              lat, lng = match
              self._check_for_list([lat, lng])
          else:
              # Check for string to Geocode using a provider
              provider = self.kwargs.get("provider", "osm")
              g = geocoder.get(location, provider=provider)
              if g.ok:
                  self.lat, self.lng = g.lat, g.lng
  
      # Checking for List of Tuple
      elif isinstance(location, (list, tuple)):
          self._check_for_list(location)
  
      # Checking for Dictionary
      elif isinstance(location, dict):
          self._check_for_dict(location)
  
      # Checking for a Geocoder Class
      elif hasattr(location, "latlng"):
          if location.latlng:
              self.lat, self.lng = location.latlng
  
      # Result into Error
      else:
          raise ValueError("Unknown location: %s" % location)
  
imports: import re
  import geocoder
  from six import string_types
label_desc: Use image node_id 4 for calling the Location obj's underlying member method code with example usage: obj._check_input(location) without return types