def split_paths(path):
  """Return a list of path elements.

  Args:
    path: A YANG path string specified as /a/b

  Returns:
    A list of path components
  """
  components = path.split("/")
  return [c for c in components if c]