parameters: (temps, query_temp)
return_statement: return temps[np.argmin(np.abs(temps-query_temp))]
docstring: Helper function to get the nearest temp in a list
      from a given query_temp
  
      :param temps: list of temps.
  
      :param query_temp: query temp
  
      Returns:
      idx: index of nearest temp in the list
  
      out_temp: nearest temp from the list
docstring_summary: Helper function to get the nearest temp in a list
      from a given query_temp
docstring_tokens: Helper function to get the nearest temp in a list from a given query_temp
function: def _get_nearest_temp(temps, query_temp):
      """
      Helper function to get the nearest temp in a list
      from a given query_temp
  
      :param temps: list of temps.
  
      :param query_temp: query temp
  
      Returns:
      idx: index of nearest temp in the list
  
      out_temp: nearest temp from the list
      """
  
      if isinstance(temps, list): temps = np.array(temps)
      return temps[np.argmin(np.abs(temps-query_temp))]
function_tokens: def _get_nearest_temp ( temps , query_temp ) : if isinstance ( temps , list ) : temps = np . array ( temps ) return temps [ np . argmin ( np . abs ( temps - query_temp ) ) ]