Pytorch assign in place mod
A `torch.Tensor` object used with a modify in place function in an assignment statement might unintentionally overwrite the values of the calling variable.
def pytorch_assign_in_place_mod_noncompliant():
    import torch
    x = torch.randn([2, 2])
    y = torch.randn([2, 2])
    # Noncompliant: in-place method is called as part of assignment statement.
    z = x.add_(y)
def pytorch_assign_in_place_mod_compliant():
    import torch
    x = torch.randn([2, 2])
    y = torch.randn([2, 2])
    # Compliant: in-place method is not called as part of assignment statement.
    x.add_(y)
    z = x