Solved by user_123454321 in post #15 
              
              
                Your train dataset name is same as that of train function…, so in effect you are calling the dataset (which is rightly not callable) instead of the train function.