class_docstr: Allows copying of module to a target device.
  
  Example::
  
      class MyModule(CopyableMixin):
          ...
  
  Args:
      device : torch.device to copy to
  
  Returns
      nn.Module on new device
class_docstr_tok: ["Allows","copying","of","module","to","a","target","device",".","Example",":",":","class","MyModule","(","CopyableMixin",")",":","...","Args",":","device",":","torch.device","to","copy","to","Returns","nn.Module","on","new","device"]
code: def copy(
      self,
      device: torch.device,
  ) -> nn.Module:
      return copy_to_device(
          self,
          current_device=torch.device("cpu"),
          to_device=device,
      )
  
imports: import copy
  import logging
  from collections import OrderedDict
  from itertools import accumulate
  from typing import Any, Dict, List, Optional, Set, Type, TypeVar, Union
  import torch
  from fbgemm_gpu.split_embedding_configs import EmbOptimType
  from torch import nn
  from torchrec import optim
  from torchrec.distributed.embedding_types import EmbeddingComputeKernel
  from torchrec.distributed.types import DataType, ParameterSharding, ShardedModule, ShardingType
  from torchrec.modules.embedding_configs import data_type_to_sparse_type
  from torchrec.types import CopyMixIn
label_desc: Use image node_id 1 for calling the CopyableMixin obj's underlying member method code with example usage: obj.copy(device) and returns: copy_to_device