[JIT] Support calling Tensor.element_size() in TorchScript (#33808)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33808
# Problem
https://github.com/pytorch/pytorch/issues/33620
ghstack-source-id: 99073701
Test Plan:
```
buck test mode/dev-nosan //caffe2/test:jit -- test_numel
buck test mode/dev-nosan //caffe2/test:jit -- test_element_size
buck build mode/dev-nosan //caffe2/test:jit \
&& buck-out/gen/caffe2/test/jit\#binary.par -r test_numel
buck build mode/dev-nosan //caffe2/test:jit \
&& buck-out/gen/caffe2/test/jit\#binary.par -r test_element_size
```
Compile error
P126667043
Generated code,
```
buck-out/dev/gen/caffe2/generate-code=register_aten_ops_0.cpp/register_aten_ops_0.cpp
buck-out/dev/gen/caffe2/generate-code=register_aten_ops_2.cpp/register_aten_ops_2.cpp
```
P126667064
Differential Revision: D7050644
fbshipit-source-id: 20dbdb9c500b6d7683c23e3049d43ed0ca06d831