code: def dtype(self, new_dtype: Union[str, torch.dtype]) -> None:
      # necessary to avoid infinite recursion
      raise RuntimeError(
          "Cannot set the dtype explicitly. Please use module.to(new_dtype)."
      )
  
file_path: pytorch-lightning/src/lightning/fabric/utilities/device_dtype_mixin.py
imports: from typing import Any, List, Optional, Union
  import torch
  from torch.nn import Module
  from typing_extensions import Self, override
label_desc: Use image node_id 3 for calling the _DeviceDtypeModuleMixin obj's underlying member method code with example usage: obj.dtype(new_dtype) without return types