A conviction can not be had upon the testimony of an accomplice unless it be corroborated by such other evidence as shall tend to connect the defendant with the commission of the offense; and the corroboration is not sufficient if it merely shows the commission of the offense or the circumstances thereof.
An accomplice is hereby defined as one who is liable to prosecution for the identical offense charged against the defendant on trial in the cause in which the testimony of the accomplice is given.