def get_time_shift_pad_offset(time_shift_amount):
  """Gets time shift paddings and offsets.

  Arguments:
    time_shift_amount: time shift in samples, for example -100...100

  Returns:
    Shifting parameters which will be used by shift_in_time() function above
  """
  if time_shift_amount > 0:
    time_shift_padding = [[time_shift_amount, 0], [0, 0]]
    time_shift_offset = [0, 0]
  else:
    time_shift_padding = [[0, -time_shift_amount], [0, 0]]
    time_shift_offset = [-time_shift_amount, 0]
  return time_shift_padding, time_shift_offset