code: def test_others_not_dict(df):
      """Raise Error if `others` is not a dictionary."""
      with pytest.raises(TypeError):
          df.expand_grid("frame", others=[2, 3])
  
imports: from functools import reduce
  import numpy
  import pandas
  import pytest
  from hypothesis import given, settings
  from pandas.testing import assert_frame_equal
  import janitor
  from janitor.functions.expand_grid import expand_grid
  from janitor.testing_utils.strategies import categoricaldf_strategy, df_strategy
label_desc: Use image node_id 1 for calling a global function with example usage: test_others_not_dict(df) without return types