Better error message for using Python builtin_function_or_method (#22935)
Summary:
* better error in `toSugaredValue`
* removes a bunch of periods on error messages, `ErrorReport` already adds a `:` at the end of the message](https://our.intern.facebook.com/intern/diff/16291079/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/22935
Pulled By: driazati
Differential Revision: D16291079
fbshipit-source-id: 478724fc7d1ae79093f4ede18553ffeafa2c7964