<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def SplitKeyPath(key_path, path_separator=definitions.KEY_PATH_SEPARATOR):
 """Splits the key path into path segments. Args: key_path (str):
 key path. path_separator (Optional[str]):
 path separator. Returns: list[str]: key path segments without the root path segment, which is an empty string. """

  # Split the path with the path separator and remove empty path segments.
  return list(filter(None, key_path.split(path_separator)))