TypeError: function() argument 1 must be code, not str
# 🐛 Bug
TypeError: function() argument 1 must be code, not str
## Information

@dataclass
class T2TDataCollator(DataCollator):


I get this error when create datacollator class<|||||>Could you provide more information? It's a bit hard to help you here. What is the code you're using and what is the stacktrace?<|||||>thanks you! i have the same problem with this #5049 