original_docstring: Checks if a module exists and can be imported
docstring: Checks if a module exists and can be imported
docstring_tokens: Checks if a module exists and can be imported
code: def module_exists(module_name):
      """Checks if a module exists and can be imported"""
      try:
          __import__(module_name)
      except ImportError:
          return False
      else:
          return True
code_tokens: def module_exists ( module_name ) : try : __import__ ( module_name ) except ImportError : return False else : return True
short_docstring: Checks if a module exists and can be imported
short_docstring_tokens: Checks if a module exists and can be imported
comment: """Checks if a module exists and can be imported"""