input: Write a python function to get the titles of top stories from the Hacker News API.
  assert get_top_stories_titles() != []
  assert isinstance(get_top_stories_titles(), list)
  assert all(isinstance(title, str) for title in get_top_stories_titles())
output: import requests
  
  def get_top_stories_titles():
      url = "https://hacker-news.firebaseio.com/v0/topstories.json"
      story_ids = requests.get(url).json()
      titles = []
      
      for story_id in story_ids[:10]:  # Limiting to the top 10 stories for brevity
          story_url = f"https://hacker-news.firebaseio.com/v0/item/{story_id}.json"
          story_details = requests.get(story_url).json()
          if 'title' in story_details:
              titles.append(story_details['title'])
      
      return titles