title: How do I import a third party module in Python?
body: <p>I've found a third party module which I would like to use. How do I technically import that module?</p>
  
  <p>Particularly, I want to use a module called <a href="https://github.com/cool-RR/GarlicSim-for-Python-3.x/blob/master/garlicsim_py3/garlicsim/general_misc/context_manager.py" rel="nofollow">context_manager</a>. obviously, I cannot just <code>import garlicsim.general_misc.context_manager</code>because it won't find <code>garlicsim</code>. So what should I write to import the thing?</p>
  
  <p><strong>EDIT:</strong> I'm using both Python 3.x and Python 2.x and I'd like to get answers relevant to both versions.</p>