def vision_matched_template_get_pose(template_match):
    """
    Get the pose of a previously detected template match. Use list operations
    to get specific entries, otherwise returns value of first entry.

    Parameters:

    template_match (List[MatchedTemplate3D] or MatchedTemplate3D): The template match(s)

    Return (Pose): The pose of the template match
    """
    if isinstance(template_match,list):
        template_match = template_match[0]
    return template_match.pose.pose.pose