input: Write a function to get the 10 most recent posts from Twitter given an userid.
  assert len(get_recent_posts("elonmusk"))==10
  assert all(isinstance(post, str) for post in get_recent_posts("elonmusk"))
  assert get_recent_posts("invaliduserid")==[]
output: import tweepy
  
  def get_recent_posts(userid):
      # You need to replace these with your own API keys from your Twitter Developer account
      API_KEY = 'your_api_key'
      API_SECRET_KEY = 'your_api_secret_key'
      ACCESS_TOKEN = 'your_access_token'
      ACCESS_TOKEN_SECRET = 'your_access_token_secret'
  
      # Authenticate to Twitter
      auth = tweepy.OAuth1UserHandler(API_KEY, API_SECRET_KEY, ACCESS_TOKEN, ACCESS_TOKEN_SECRET)
      api = tweepy.API(auth)
  
      try:
          # Get the 10 most recent tweets
          tweets = api.user_timeline(screen_name=userid, count=10, tweet_mode="extended")
          return [tweet.full_text for tweet in tweets]
      except tweepy.TweepError:
          return []