class_docstr: A mixin to allow modules to override copy behaviors in DMP.
class_docstr_tok: ["A","mixin","to","allow","modules","to","override","copy","behaviors","in","DMP","."]
code: def copy(self, device: torch.device) -> nn.Module:
      # pyre-ignore [16]
      return self.to(device)
  
file_path: torchrec/torchrec/types.py
imports: from abc import abstractmethod
  from enum import Enum, unique
  import torch
  from torch import nn
label_desc: Use image node_id 1 for calling the ModuleCopyMixin obj's underlying member method code with example usage: obj.copy(device) and returns: self