title: How can I check if a module has been imported?
body: <p>How do I check if I imported a module somewhere in the code?</p>
  <pre><code> if not has_imported(&quot;somemodule&quot;):
       print('you have not imported somemodule')
  </code></pre>
  <p>The reason that I would like to check if I already imported a module is because I have a module that I don't want to import, because sometimes it messes up my program.</p>