parameters: (names)
docstring: try given list of modules and return that imports
docstring_summary: try given list of modules and return that imports
docstring_tokens: try given list of modules and return that imports
function: def detect_java_comm(names):
      """try given list of modules and return that imports"""
      for name in names:
          try:
              mod = my_import(name)
              mod.SerialPort
              return mod
          except (ImportError, AttributeError):
              pass
      raise ImportError("No Java Communications API implementation found")
function_tokens: def detect_java_comm ( names ) : for name in names : try : mod = my_import ( name ) mod . SerialPort return mod except ( ImportError , AttributeError ) : pass raise ImportError ( "No Java Communications API implementation found" )