code: def test_datatypes_check(dataframe):
      # `scale` should be a numeric value > 0
      with pytest.raises(TypeError):
          assert dataframe.jitter(
              column_name="a", dest_column_name="a_jitter", scale="x"
          )
  
      # `random_state` should be an integer or 1-d array
      # (see documentation for np.random.seed)
      with pytest.raises(TypeError):
          assert dataframe.jitter(
              column_name="a",
              dest_column_name="a_jitter",
              scale=1,
              random_state="x",
          )
  
      # `clip` should only contain numeric values
      with pytest.raises(TypeError):
          assert dataframe.jitter(
              column_name="a",
              dest_column_name="a_jitter",
              scale=1,
              clip=["x", 2],
          )
  
      # The column to jitter should be numeric
      with pytest.raises(TypeError):
          assert dataframe.jitter(
              column_name="cities",
              dest_column_name="cities_jitter",
              scale=1,
          )
  
      # `scale` should be greater than 0
      with pytest.raises(ValueError):
          assert dataframe.jitter(
              column_name="a", dest_column_name="a_jitter", scale=-5
          )
  
      # `clip` should be a size-2 tuple of numeric values
      with pytest.raises(ValueError):
          assert dataframe.jitter(
              column_name="a",
              dest_column_name="a_jitter",
              scale=1,
              clip=[-10, 10, 5],
          )
  
      # `clip[0]` should be less than `clip[1]`
      with pytest.raises(ValueError):
          assert dataframe.jitter(
              column_name="a",
              dest_column_name="a_jitter",
              scale=1,
              clip=[10, 5],
          )
  
file_path: pyjanitor/tests/functions/test_jitter.py
imports: import pandas
  import pytest
  from janitor.functions import jitter
label_desc: Use image node_id 1 for calling a global function with example usage: test_datatypes_check(dataframe) without return types