class_docstr: Add `n_dim` channels at the end of the input.
class_docstr_tok: ["Add","`","n_dim","`","channels","at","the","end","of","the","input","."]
code: def forward(self, x):
      return x.view(*(list(x.shape) + [1] * self.n_dim))
  
imports: from __future__ import annotations
  from ..basics import *
  from .all import *
label_desc: Use image node_id 2 for calling the AddChannels obj's underlying member method code with example usage: obj.forward(x) and returns: x