code: def create_segment_manifest(
      input_manifest_path: str,
      output_manifest_path: str,
      window: float,
      shift: float,
      step_count: int,
      deci: int,
  ):
      """
      Create segmented manifest file from base manifest file
  
      Args:
          input_manifest_path (str): Path to input manifest file
          output_manifest_path (str): Path to output manifest file
          window (float): Window length for segmentation
          shift (float): Shift length for segmentation
          step_count (int): Number of the unit segments you want to create per utterance
          deci (int): Rounding number of decimal places
      """
      if ".json" not in input_manifest_path:
          raise ValueError(
              "input_manifest_path file should be .json file format"
          )
      if output_manifest_path and ".json" not in output_manifest_path:
          raise ValueError(
              "output_manifest_path file should be .json file format"
          )
      elif not output_manifest_path:
          output_manifest_path = rreplace(
              input_manifest_path, ".json", f"_{step_count}seg.json"
          )
  
      input_manifest_dict = get_input_manifest_dict(input_manifest_path)
      segment_manifest_path = rreplace(
          input_manifest_path, ".json", "_seg.json"
      )
      subsegment_manifest_path = rreplace(
          input_manifest_path, ".json", "_subseg.json"
      )
      min_subsegment_duration = 0.05
      step_count = int(step_count)
  
      AUDIO_RTTM_MAP = audio_rttm_map(input_manifest_path)
      segments_manifest_file = write_rttm2manifest(
          AUDIO_RTTM_MAP, segment_manifest_path, deci
      )
      subsegments_manifest_file = subsegment_manifest_path
      segments_manifest_to_subsegments_manifest(
          segments_manifest_file,
          subsegments_manifest_file,
          window,
          shift,
          min_subsegment_duration,
      )
      subsegments_dict = get_subsegment_dict(
          subsegments_manifest_file, window, shift, deci
      )
      write_truncated_subsegments(
          input_manifest_dict,
          subsegments_dict,
          output_manifest_path,
          step_count,
          deci,
      )
      os.remove(segment_manifest_path)
      os.remove(subsegment_manifest_path)
  
imports: import json
  import os
  from collections import Counter
  from collections import OrderedDict
  from pathlib import Path
  from typing import Dict, List, Union
  import librosa
  import numpy
  from nemo.collections.asr.parts.utils.speaker_utils import audio_rttm_map, get_subsegments, get_uniqname_from_filepath, rttm_to_labels, segments_manifest_to_subsegments_manifest, write_rttm2manifest
  from nemo.utils.data_utils import DataStoreObject
label_desc: Use image node_id 13 for calling a global function with example usage: create_segment_manifest(input_manifest_path, output_manifest_path, window, shift, step_count, deci) without return types