def METHOD_NAME(tensor, a_min=None, a_max=None, inplace=False):
    if inplace:
        return torch.METHOD_NAME(tensor, a_min, a_max, out=tensor)
    else:
        return torch.METHOD_NAME(tensor, a_min, a_max)