code: def _wrap(cls, values, bmat):
      matrix = cls.__new__(cls, values, bmat.__layout)
      matrix.__values = values
      matrix.__layout = bmat.__layout
      matrix.__sparse_dot_sdd = bmat.__sparse_dot_sdd
      matrix.__sparse_dot_dsd = bmat.__sparse_dot_dsd
      matrix.__sparse_softmax = bmat.__sparse_softmax
      return matrix
  
imports: import logging
  import torch
  from xformers import _is_triton_available
  from xformers.ops import masked_matmul
label_desc: Use image node_id 7 for calling the BlockSparseTensor obj's underlying member method code with example usage: obj._wrap(cls, values, bmat) and returns: matrix