fixing DifferentiableGraphOp updating requires_grad on input tensor list; python test added to verify the test (#57574)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57574
Test Plan: Imported from OSS
Reviewed By: bdhirsh
Differential Revision: D29038774
Pulled By: Krovatkin
fbshipit-source-id: cb342c1b04fa3713a8166b39213437bc9f2d8606