code: def q_sampler(self) -> DDPMQSampler:
      return self.model.q_sampler
  
file_path: carefree-learn/cflearn/models/cv/diffusion/samplers/basic.py
imports: import torch
  from torch import Tensor
  from typing import Any
  from typing import Dict
  from typing import Optional
  from .schema import ISampler
  from .schema import IDiffusion
  from .schema import DDPMQSampler
  from ..utils import cond_type
  from ..utils import extract_to
  from ..utils import get_timesteps
label_desc: Use image node_id 2 for calling the BasicSampler obj's underlying member method code with example usage: obj.q_sampler() and returns: self