code: def test_sort_column_value_order(company_sales_df):
      """Main test for sort_column_value_order."""
      df = company_sales_df.set_index("Company1")
      company_sales_2 = {
          "SalesMonth": reversed(["Jan", "Feb", "Feb", "Mar", "April"]),
          "Company1": reversed([150.0, 230.0, 260.0, 300.0, 400.0]),
          "Company2": reversed([500.0, 250.0, 210.0, np.nan, 80.0]),
          "Company3": reversed([400.0, 500.0, 500.0, 600.0, 675.0]),
      }
      df2 = pd.DataFrame.from_dict(company_sales_2)
      df2 = df2.set_index("Company1")
      with pytest.raises(ValueError):
          assert pd.DataFrame().equals(
              sort_column_value_order(pd.DataFrame(), "", {})
          )
      with pytest.raises(ValueError):
          assert pd.DataFrame().equals(
              sort_column_value_order(
                  df, "", {"April": 1, "Mar": 2, "Feb": 3, "Jan": 4}
              )
          )
      assert df2.equals(
          df.sort_column_value_order(
              "SalesMonth", {"April": 1, "Mar": 2, "Feb": 3, "Jan": 4}
          )
      )
  
file_path: pyjanitor/tests/functions/test_sort_column_value_order.py
imports: import numpy
  import pandas
  import pytest
  from janitor.functions import sort_column_value_order
label_desc: Use image node_id 2 for calling a global function with example usage: test_sort_column_value_order(company_sales_df) without return types