Pytorch's Identity() implementation/alternative in Fluxml?

How is Pytorch’s identity different from just identity function defined as f(x) = x ?