You're right. I thought that in order to be able to use the enum for calling the function, it has to be imported first, which is not the case.