When you do dataloader = torch.utils.data.DataLoader(args). Then you create a new instance of the class DataLoader. This calls the __init__() function defined for that class.
Now if you call the instance dataloader(), then it will call the __call__() method on the class.
You can simply override that method to make your class instance callable.