You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: twitter_concern.rb
    path of file: ./repos/huginn/app/concerns
    
    the code of the file until where you have to start completion: module TwitterConcern
  extend ActiveSupport::Concern


    
  def format_tweet(tweet)
    attrs =
      case tweet
      when Twitter::Tweet
        tweet.attrs
      when Hash
        if tweet.key?(:id)
          tweet
        else
          tweet.deep_symbolize_keys
        end