<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ends_with_path_separator(self, file_path):
 """Return True if ``file_path`` ends with a valid path separator."""

        if is_int_type(file_path):
            return False
        file_path = make_string_path(file_path)
        return (file_path and
                file_path not in (self.path_separator,
                                  self.alternative_path_separator) and
                (file_path.endswith(self._path_separator(file_path)) or
                 self.alternative_path_separator is not None and
                 file_path.endswith(
                     self._alternative_path_separator(file_path))))