def METHOD_NAME(self):
    if hasattr(self.datasets[0], "src_dict"):
        return self.datasets[0].src_dict.pad()
    if hasattr(self.datasets[0], "dataset"):
        return self.datasets[0].dataset.src_dict.pad()
    raise NotImplementedError("No src_dict is found")