input: Write a python function to get a list of directories in a given path.
  assert get_directories("/some/path") == ["dir1", "dir2", "dir3"]
  assert get_directories("/another/path") == ["folderA", "folderB"]
  assert get_directories("/path/without/dirs") == []
output: import os
  
  def get_directories(path):
      try:
          return [name for name in os.listdir(path) if os.path.isdir(os.path.join(path, name))]
      except FileNotFoundError:
          return []