<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _templates_match(t, family_file):
 """ Return True if a tribe matches a family file path. :type t: Tribe :type family_file: str :return: bool """

    return t.name == family_file.split(os.sep)[-1].split('_detections.csv')[0]