code: def clone_module_parameter(module, param_name):
      """
      Clone a parameter from a given existing module.
  
      Args:
          module (:class:`torch.nn.Module`): Module whose parameter needs to be cloned.
          param_name (str): Name of the parameter of ``module`` that needs to be cloned.
  
      Returns: cloned tensor as :class:`torch.nn.Parameter`.
      """
      tensor = getattr(module, param_name)
      return torch.nn.Parameter(tensor.detach().clone())
  
file_path: pytorch/torch/testing/_internal/distributed/_shard/sharded_tensor/_test_ops_common.py
imports: import builtins
  import torch
  from torch.distributed._shard.sharding_spec import ChunkShardingSpec, EnumerableShardingSpec, ShardMetadata
  from torch.distributed._shard.sharding_spec._internals import get_chunked_dim_size, get_split_size
label_desc: Use image node_id 4 for calling a global function with example usage: clone_module_parameter(module, param_name) and returns: torch