<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def endswith(self, pat):
 """Test if elements end with pat. Parameters pat : str Returns ------- Series """

        check_type(pat, str)

        return _series_bool_result(self, weld_str_endswith, pat=pat)