code: def set_format(self, tensor_format="pd"):
      self.tensor_format = tensor_format
      if tensor_format == "pd":
          for key, value in vars(self).items():
              if isinstance(value, np.ndarray):
                  setattr(self, key, paddle.to_tensor(value))
  
      return self
  
file_path: PaddleHub/modules/image/text_to_image/stable_diffusion_waifu/diffusers/schedulers/scheduling_utils.py
imports: from typing import Union
  import numpy
  import paddle
label_desc: Use image node_id 1 for calling the SchedulerMixin obj's underlying member method code with example usage: obj.set_format(tensor_format) and returns: self