itempage = pywikibot.ItemPage(wikidata, "Q42")  # Q42 is Douglas Adams
itempage
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-8-a7e9ecf2e327> in <module>()
----> 1 itempage = pywikibot.ItemPage(wikidata, "Q42")  # Q42 is Douglas Adams
      2 itempage

NameError: name 'wikidata' is not defined
testwikidata = pywikibot.Site('test', 'wikidata')