code: def test_define_seed(df_vartypes):
      assert (
          _define_seed(df_vartypes, 0, ["Age", "Marks"], how="add")
          == 21
      )
      assert (
          _define_seed(df_vartypes, 0, ["Age", "Marks"], how="multiply")
          == 18
      )
      assert (
          _define_seed(df_vartypes, 2, ["Age", "Marks"], how="add")
          == 20
      )
      assert (
          _define_seed(df_vartypes, 2, ["Age", "Marks"], how="multiply")
          == 13
      )
      assert _define_seed(df_vartypes, 1, ["Age"], how="add") == 21
      assert (
          _define_seed(df_vartypes, 3, ["Marks"], how="multiply") == 1
      )
  
file_path: feature_engine/tests/test_imputation/test_random_sample_imputer.py
imports: import numpy
  import pandas
  import pytest
  from feature_engine.imputation import RandomSampleImputer
  from feature_engine.imputation.random_sample import _define_seed
label_desc: Use image node_id 1 for calling a global function with example usage: test_define_seed(df_vartypes) without return types