[autograd_function_db] Add NumpyTake as OpInfo (#98438)
Previously we used this to test the backward of NumpySort. It doesn't
hurt to test it separately (plus I want to use the sample_inputs for
something else).
Test Plan:
- run tests
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98438
Approved by: https://github.com/ezyang, https://github.com/soulitzer