code: def sample(self, bqm, **kwargs):
          
          tkw = self._truncate_kwargs
          if self._aggregate:
              return self.child.sample(bqm, **kwargs).aggregate().truncate(**tkw)
          else:
              return self.child.sample(bqm, **kwargs).truncate(**tkw)
docs: Sample from the problem provided by bqm and truncate output.
  
          Args:
              bqm (:obj:`dimod.BinaryQuadraticModel`):
                  Binary quadratic model to be sampled from.
  
              **kwargs:
                  Parameters for the sampling method, specified by the child
                  sampler.
  
          Returns:
              :obj:`dimod.SampleSet`