The error message seems to be raised by a method, which is specific to the repository you are using, so I would recommend to ask the authors or create an issue in the repository directly.
That being said, based on the error message it seems you would have to call the model with data before calling the code snippet, which is raising this error.