The path to the training environment and the code directory in the container are generally obtained using the environment variable ${MA_JOB_DIR}, which is /home/ma-user/modelarts/user-job-dir.