Abaqus - line 29: import: command not found

While running the Abaqus job on the cluster, why always the Slurm_job manager writes in "slurm_jobID.out" the following line:: 

"/var/share/slurm/d/job1120523/slurm_script: line 29: import: command not found".

Here is the full output of the "slurm_jobID.out" file::

==========================================
SLURM_CLUSTER_NAME = my_cluster_name
SLURM_JOB_ACCOUNT = user_account_name
SLURM_JOB_ID = 1120523
SLURM_JOB_NAME = job_name
SLURM_JOB_NODELIST = cn[010-012,118,168-169,173,207-208]
SLURM_JOB_USER = user_name
SLURM_JOB_UID = 6811
SLURM_JOB_PARTITION = standard-low
SLURM_TASK_PID = 17451
SLURM_SUBMIT_DIR = work_dir_path
SLURM_CPUS_ON_NODE = 1
SLURM_NTASKS = 40
SLURM_TASK_PID = 17451
==========================================
/var/share/slurm/d/job1120523/slurm_script: line 29: import: command not found
Checkout succeeded: standard/EECAD700DBEA
License file: ################
License Server: ################
Checkout succeeded: parallel/35495086D91A
License file: ################
License Server: ################
Abaqus License Manager checked out the following licenses:
Abaqus/Standard checked out 23 tokens from Flexnet server ################
<197 out of 250 licenses remain available>.
Checkout succeeded: Comp-FL/83E337DA6EEC
License file: ################
License Server: ################
Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.2.199 Build 20180210
Copyright (C) 1985-2018 Intel Corporation. All rights reserved.

Checkout succeeded: Comp-FL/83E337DA6EEC
License file:################
License Server: ################
Intel(R) Fortran Intel(R) 64 Compiler for applications running on Intel(R) 64, Version 18.0.2.199 Build 20180210
Copyright (C) 1985-2018 Intel Corporation. All rights reserved.

0: Running on cn010
2: Running on cn012
6: Running on cn173
8: Running on cn208
1: Running on cn011
3: Running on cn118
7: Running on cn207
4: Running on cn168
5: Running on cn169
0: Exiting on cn010
2: Exiting on cn012
6: Exiting on cn173
8: Exiting on cn208
1: Exiting on cn011
3: Exiting on cn118
7: Exiting on cn207
4: Exiting on cn168
5: Exiting on cn169
0: Running on cn010
2: Running on cn012
6: Running on cn173
8: Running on cn208
1: Running on cn011
3: Running on cn118
7: Running on cn207
4: Running on cn168
5: Running on cn169
slurmstepd: error: *** JOB 1120523 ON cn010 CANCELLED AT 2023-03-24T11:12:13 DUE TO TIME LIMIT ***

Here is the section of my script using the "import" command::

node_list=ABAQUS_NODES

import os

srun hostname | sort > \$node_list
nodes="\$(cat ABAQUS_NODES)"

Thank you for your answers

Abaqus ​​​​​​​