code: def _packed_sequence_init(
      data: Tensor,
      batch_sizes: Optional[Tensor] = None,
      sorted_indices: Optional[Tensor] = None,
      unsorted_indices: Optional[Tensor] = None,
  ) -> PackedSequence:
      (
          data,
          batch_sizes,
          sorted_indices,
          unsorted_indices,
      ) = _packed_sequence_init_args(
          data, batch_sizes, sorted_indices, unsorted_indices
      )
      return PackedSequence(
          data, batch_sizes, sorted_indices, unsorted_indices
      )
  
imports: import warnings
  from typing import Iterable, List, NamedTuple, Tuple, Union
  import torch
  from torch import Tensor
  from ...None import _VF
  from ..._jit_internal import Optional
label_desc: Use image node_id 3 for calling a global function with example usage: _packed_sequence_init(data, batch_sizes, sorted_indices, unsorted_indices) and returns: PackedSequence