def create_index(self, table_name, attr_name):
self.verify_table_existence(table_name)<EOL>self.validate_access_permission(["<STR_LIT:w>", "<STR_LIT:a>"])<EOL>query_format = "<STR_LIT>"<EOL>query = query_format.format(<EOL>index=make_index_name(table_name, attr_name),<EOL>table=Table(table_name),<EOL>attr=Attr(attr_name),<EOL>)<EOL>logger.debug(query)<EOL>self.execute_query(query, logging.getLogger().findCaller())<EOL>
:param str table_name:
    Table name that contains the attribute to be indexed.
:param str attr_name: Attribute name to create index.
:raises IOError: |raises_write_permission|
:raises simplesqlite.NullDatabaseConnectionError:
    |raises_check_connection|
:raises simplesqlite.TableNotFoundError:
    |raises_verify_table_existence|