code: def test_to_combinations():
      module = ExampleModule(torch.rand(3, 4))
      # sanity check
      assert module.weight.shape == (3, 4)
      assert module.weight.dtype is torch.float32
      # positional dtype
      module.to(torch.double)
      assert module.weight.dtype is torch.float64
      # positional device
      module.to("cpu", dtype=torch.half, non_blocking=True)
      assert module.weight.dtype is torch.float16
      assert module.device == torch.device("cpu")
      assert module.dtype is torch.float16
  
imports: import pytest
  import torch
  from lightning.fabric.utilities.device_dtype_mixin import _DeviceDtypeModuleMixin
  from torch import nn
  from tests_fabric.helpers.runif import RunIf
label_desc: Use image node_id 5 for calling a global function with example usage: test_to_combinations() without return types