A trainee and his or her supervisor shall be held to the standard of care of, and shall be afforded the same immunities as, an individual otherwise legally qualified to perform the health care service or services performed by the trainee or supervisor.