code: def _make_rand_data(self, device, dtype, batch_size):
      shape = [] if batch_size is None else [batch_size]
      return torch.rand([*shape, 4], device=device, dtype=dtype)
  
imports: import pytest
  import torch
  from kornia.geometry.quaternion import Quaternion
  from kornia.testing import assert_close
label_desc: Use image node_id 1 for calling the TestQuaternion obj's underlying member method code with example usage: obj._make_rand_data(device, dtype, batch_size) and returns: torch