code: def _is_script_module(module: Module) -> bool:
      import torch.jit
  
      return isinstance(module, torch.jit.ScriptModule)
  
file_path: pytorch/torch/nn/parallel/replicate.py
imports: import torch
  from ..modules import Module
  from .None import comm
  from typing import TYPE_CHECKING, Dict, Iterator, List, Optional, Sequence, Set, TypeVar, Union, cast
  from torch._utils import _get_device_index
  from collections import OrderedDict
label_desc: Use image node_id 1 for calling a global function with example usage: _is_script_module(module) and returns: isinstance