parameters: (con)
return_statement: return con
docstring: Returns a SQLAlchemy engine from a URI (if con is a string)
      else it just return con without modifying it.
docstring_summary: Returns a SQLAlchemy engine from a URI (if con is a string)
      else it just return con without modifying it.
docstring_tokens: Returns a SQLAlchemy engine from a URI ( if con is a string ) else it just return con without modifying it .
function: def _engine_builder(con):
      """
      Returns a SQLAlchemy engine from a URI (if con is a string)
      else it just return con without modifying it.
      """
      global _SQLALCHEMY_INSTALLED
      if isinstance(con, str):
          try:
              import sqlalchemy
          except ImportError:
              _SQLALCHEMY_INSTALLED = False
          else:
              con = sqlalchemy.create_engine(con)
              return con
  
      return con
function_tokens: def _engine_builder ( con ) : global _SQLALCHEMY_INSTALLED if isinstance ( con , str ) : try : import sqlalchemy except ImportError : _SQLALCHEMY_INSTALLED = False else : con = sqlalchemy . create_engine ( con ) return con return con