code: def curtail_to_multiple(t, mult, from_left=False):
      data_len = t.shape[-1]
      rounded_seq_len = round_down_nearest_multiple(data_len, mult)
      seq_slice = (
          slice(None, rounded_seq_len)
          if not from_left
          else slice(-rounded_seq_len, None)
      )
      return t[..., seq_slice]
  
file_path: TTS/TTS/tts/layers/bark/hubert/kmeans_hubert.py
imports: import logging
  from pathlib import Path
  import torch
  from einops import pack, unpack
  from torch import nn
  from torchaudio.functional import resample
  from transformers import HubertModel
label_desc: Use image node_id 2 for calling a global function with example usage: curtail_to_multiple(t, mult, from_left) and returns: t