code: def _build_bases(self, B, S, D, R):
      bases = paddle.rand((B * S, D, R))
  
      bases = F.normalize(bases, axis=1)
  
      return bases
  
file_path: PaddleSeg/paddleseg/models/layers/nmf_2d.py
imports: from abc import abstractmethod, ABCMeta
  import paddle
  import paddle.nn
  import paddle.nn.functional
label_desc: Use image node_id 2 for calling the NMF2D obj's underlying member method code with example usage: obj._build_bases(B, S, D, R) and returns: bases