def retrieve_template(file_path):
    """
        a method to retrieve text of a template file 
        
    :param file_path: string with relative path of file
    :return: string with text of file
    """
    from os import path
    from pocketlab import __module__
    from importlib.util import find_spec
    module_path = find_spec(__module__).submodule_search_locations[0]
    absolute_path = path.join(module_path, file_path)
    file_text = open(absolute_path, 'rt').read()
    return file_text
