code: def _validate_latitude(latitude):
      try:
          latitude = float(latitude)
      except (TypeError, ValueError):
          raise traitlets.TraitError(
              "{} is not a valid latitude. "
              "Latitudes must be floats".format(latitude)
          )
      if not (-90.0 <= latitude <= 90.0):
          raise InvalidPointException(
              "{} is not a valid latitude. "
              "Latitudes must lie between -90 and 90.".format(latitude)
          )
  
imports: import re
  import traitlets
  from .locations import locations_to_list
label_desc: Use image node_id 2 for calling a global function with example usage: _validate_latitude(latitude) without return types