code: def _parse_distance_response(distance_string) -> float:
      '''
      Parse responses of 'GET_PLATE_HEIGHT' & 'GET_CURRENT_POSITION'
      Example response of-
      GET_PLATE_HEIGHT: "height:12.34"
      GET_CURRENT_POSITION: "Z:12.34"
      '''
      err_msg = 'Unexpected argument to _parse_distance_response: {}'.format(
          distance_string)
      if not distance_string or \
              not isinstance(distance_string, str):
          raise ParseError(err_msg)
      if 'Z' not in distance_string and 'height' not in distance_string:
          raise ParseError(err_msg)
      return _parse_number_from_substring(  # type: ignore
          distance_string.strip()f _parse_distance_response(distance_string) -> float:
      '''
      Parse responses of 'GET_PLATE_HEIGHT' & 'GET_CURRENT_POSITION'
      Example response of-
      GET_PLATE_HEIGHT: "height:12.34"
      GET_CURRENT_POSITION: "Z:12.34"
      '''
      err_msg = 'Unexpected argument to _parse_distance_response: {}'.format(
          distance_string)
      if not distance_string or \
              not isinstance(distance_string, str):
          raise ParseError(err_msg)
      if 'Z' not in distance_string and 'height' not in distance_string:
          raise ParseError(err_msg)
      return _parse_number_from_substring(  # type: ignore
          distance_string.strip())
docs: Parse responses of 'GET_PLATE_HEIGHT' & 'GET_CURRENT_POSITION'
      Example response of-
      GET_PLATE_HEIGHT: "height:12.34"
      GET_CURRENT_POSITION: "Z:12.34"