The procedure involves inserting a needle electrode into the muscle tissue to record electrical activity. This can be particularly challenging in cancer patients who may have tumors or scar tissue in the area being tested. The specialist will perform the test in a controlled environment, often using imaging techniques to guide the needle placement accurately.