code: def test_sort_timestamps_monotonically_strict(timeseries_dataframe):
      """Test sort_timestamps_monotonically for index duplication handling"""
      df = timeseries_dataframe.shuffle(reset_index=False)
      random_number = df.index[randint(1, len(timeseries_dataframe))]
      df = pd.concat(
          [df, df.loc[[random_number], :]]
      ).sort_timestamps_monotonically(
          direction="increasing", strict=True
      )
      assert df.equals(timeseries_dataframe)
  
file_path: pyjanitor/tests/timeseries/test_sort_timestamps_monotonically.py
imports: from random import randint
  import pandas
  import pytest
  import janitor
  import janitor.timeseries
label_desc: Use image node_id 4 for calling a global function with example usage: test_sort_timestamps_monotonically_strict(timeseries_dataframe) without return types