code: def tweets_by_user_demo(user="NLTK_org", count=200):
      """
      Use the REST API to search for past tweets by a given user.
      """
      oauth = credsfromfile()
      client = Query(**oauth)
      client.register(TweetWriter())
      client.user_tweets(user, count)
  
file_path: nltk/nltk/twitter/twitter_demo.py
imports: import datetime
  import json
  from functools import wraps
  from io import StringIO
  from nltk.twitter import Query, Streamer, TweetViewer, TweetWriter, Twitter, credsfromfile
label_desc: Use image node_id 8 for calling a global function with example usage: tweets_by_user_demo(user, count) without return types