Repository: pytorch
Issue: Inconsistencies on ModelLayer
Labels: caffe2-op,triaged,better-engineering

## 🐛 Bug

<!-- A clear and concise description of what the bug is. -->
Hi, we are developing some tools to help detect bugs for Python automatically. Our tool finds potential inconsistencies among the definition of ModelLayer and the instances (BatchMSELoss, BatchSigmoidCrossEntropyLoss, etc.).

## To Reproduce

<!-- If you have a code sample, error messages, stack traces, please provide it here as well -->

The definition of ModelLayer contains the following arguments in the following sequence: model, prefix, input_record.
https://github.com/pytorch/pytorch/blob/ca3ba1095e9cffff5c9fa3a757e5902a7dfe3e99/caffe2/python/layers/layers.py#L251

Among the classes that extend the **ModelLayer**, the argument list is [model, input_record, name].

https://github.com/pytorch/pytorch/blob/ca3ba1095e9cffff5c9fa3a757e5902a7dfe3e99/caffe2/python/layers/batch_mse_loss.py#L18

https://github.com/pytorch/pytorch/blob/ca3ba1095e9cffff5c9fa3a757e5902a7dfe3e99/caffe2/python/layers/batch_sigmoid_cross_entropy_loss.py#L14

https://github.com/pytorch/pytorch/blob/ca3ba1095e9cffff5c9fa3a757e5902a7dfe3e99/caffe2/python/layers/adaptive_weight.py#L16

https://github.com/pytorch/pytorch/blob/ca3ba1095e9cffff5c9fa3a757e5902a7dfe3e99/caffe2/python/layers/add_bias.py#L13

Related Files
```
File, Line Number
pytorch/caffe2/python/layers/adaptive_weight.py, 30
pytorch/caffe2/python/layers/add_bias.py, 17
pytorch/caffe2/python/layers/arc_cosine_feature_map.py, 52
pytorch/caffe2/python/layers/batch_huber_loss.py, 21
pytorch/caffe2/python/layers/batch_lr_loss.py, 38
pytorch/caffe2/python/layers/batch_mse_loss.py, 20
pytorch/caffe2/python/layers/batch_mse_loss.py, 21
pytorch/caffe2/python/layers/batch_normalization.py, 25
pytorch/caffe2/python/layers/batch_sigmoid_cross_entropy_loss.py, 15
pytorch/caffe2/python/layers/batch_sigmoid_cross_entropy_loss.py, 22
pytorch/caffe2/python/layers/batch_softmax_loss.py, 25
pytorch/caffe2/python/layers/blob_weighted_sum.py, 26
pytorch/caffe2/python/layers/bpr_loss.py, 21
pytorch/caffe2/python/layers/bpr_loss.py, 22
pytorch/caffe2/python/layers/bucket_weighted.py, 25
pytorch/caffe2/python/layers/build_index.py, 26
pytorch/caffe2/python/layers/concat.py, 69
pytorch/caffe2/python/layers/constant_weight.py, 22
pytorch/caffe2/python/layers/conv.py, 34
pytorch/caffe2/python/layers/dropout.py, 22
pytorch/caffe2/python/layers/fc.py, 32
pytorch/caffe2/python/layers/fc_with_bootstrap.py, 40
pytorch/caffe2/python/layers/fc_without_bias.py, 28
pytorch/caffe2/python/layers/feature_sparse_to_dense.py, 27
pytorch/caffe2/python/layers/functional.py, 29
pytorch/caffe2/python/layers/gather_record.py, 32
pytorch/caffe2/python/layers/gather_record.py, 33
pytorch/caffe2/python/layers/homotopy_weight.py, 39
pytorch/caffe2/python/layers/last_n_window_collector.py, 22
pytorch/caffe2/python/layers/layer_normalization.py, 26
pytorch/caffe2/python/layers/margin_rank_loss.py, 22
pytorch/caffe2/python/layers/merge_id_lists.py, 27
pytorch/caffe2/python/layers/merge_id_lists.py, 28
pytorch/caffe2/python/layers/pairwise_similarity.py, 18
pytorch/caffe2/python/layers/position_weighted.py, 25
pytorch/caffe2/python/layers/random_fourier_features.py, 41
pytorch/caffe2/python/layers/reservoir_sampling.py, 22
pytorch/caffe2/python/layers/sampling_train.py, 24
pytorch/caffe2/python/layers/select_record_by_context.py, 35
pytorch/caffe2/python/layers/sparse_dropout_with_replacement.py, 45
pytorch/caffe2/python/layers/sparse_feature_hash.py, 25
pytorch/caffe2/python/layers/sparse_lookup.py, 136
pytorch/caffe2/python/layers/split.py, 18
pytorch/caffe2/python/layers/uniform_sampling.py, 30
pytorch/caffe2/python/net_printer.py, 278
pytorch/caffe2/python/net_printer.py, 419
```


## Expected behavior

<!-- A clear and concise description of what you expected to happen. -->
They are inconsistencies instead of bugs. It would be less confusing if the order of the argument list matches each other. Thanks!

## Environment

## Additional context

<!-- Add any other context about the problem here. -->