parameters: (msg_context, srv_type, search_path)
return_statement: return load_srv_from_file(msg_context, file_path, srv_type)
docstring: Load service specification for specified type.
  
      NOTE: services are *never* registered in a :class:`MsgContext`.
      
      :param msg_context: :class:`MsgContext` for finding loaded dependencies
      :param srv_type: relative or full message type.
      :param search_path: dictionary mapping message namespaces to a directory locations
  
      :returns: :class:`MsgSpec` instance, ``(str, MsgSpec)``
      :raises: :exc:`MsgNotFound` If message cannot be located.
docstring_summary: Load service specification for specified type.
docstring_tokens: Load service specification for specified type .
function: def load_srv_by_type(msg_context, srv_type, search_path):
      """
      Load service specification for specified type.
  
      NOTE: services are *never* registered in a :class:`MsgContext`.
      
      :param msg_context: :class:`MsgContext` for finding loaded dependencies
      :param srv_type: relative or full message type.
      :param search_path: dictionary mapping message namespaces to a directory locations
  
      :returns: :class:`MsgSpec` instance, ``(str, MsgSpec)``
      :raises: :exc:`MsgNotFound` If message cannot be located.
      """
      log("load_srv_by_type(%s, %s)" % (srv_type, str(search_path)))
      if not isinstance(search_path, dict):
          raise ValueError("search_path must be a dictionary of {namespace: dirpath}")
      package_name, base_type = package_resource_name(srv_type)
      file_path = get_srv_file(package_name, base_type, search_path)
      log("file_path", file_path)
      return load_srv_from_file(msg_context, file_path, srv_type)
function_tokens: def load_srv_by_type ( msg_context , srv_type , search_path ) : log ( "load_srv_by_type(%s, %s)" % ( srv_type , str ( search_path ) ) ) if not isinstance ( search_path , dict ) : raise ValueError ( "search_path must be a dictionary of {namespace: dirpath}" ) package_name , base_type = package_resource_name ( srv_type ) file_path = get_srv_file ( package_name , base_type , search_path ) log ( "file_path" , file_path ) return load_srv_from_file ( msg_context , file_path , srv_type )