code: def test_nearest_unequal_bad_input(self):
      with self.assertRaises(ValueError) as e:
          nearest_unequal_elements(
              pd.to_datetime(["2014", "2014"]),
              pd.Timestamp("2014"),
          )
  
      self.assertEqual(str(e.exception), "dts must be unique")
  
      with self.assertRaises(ValueError) as e:
          nearest_unequal_elements(
              pd.to_datetime(["2014", "2013"]),
              pd.Timestamp("2014"),
          )
  
      self.assertEqual(
          str(e.exception),
          "dts must be sorted in increasing order",
      )
  
file_path: zipline/tests/utils/test_pandas_utils.py
imports: from unittest import skipIf
  import pandas
  from zipline.testing import parameter_space, ZiplineTestCase
  from zipline.testing.predicates import assert_equal
  from zipline.utils.pandas_utils import categorical_df_concat, nearest_unequal_elements, new_pandas, skip_pipeline_new_pandas
label_desc: Use image node_id 3 for calling the TestNearestUnequalElements obj's underlying member method code with example usage: obj.test_nearest_unequal_bad_input() without return types