code: def test_get_integer():
      """Tests get_integer function"""
      with pytest.warns(Warning) as record:
          assert (
              get_integer(None, "val", min_value=10, default_value=20)
              == 20
          )
          assert (
              get_integer(11, "val", min_value=10, default_value=20)
              == 11
          )
          assert (
              get_integer(10.5, "val", min_value=10, default_value=20)
              == 10
          )
          assert (
              "val converted to integer 10 from 10.5"
              in record[0].message.args[0]
          )
  
      with pytest.raises(ValueError, match="val must be an integer"):
          get_integer("q", "val")
  
      with pytest.raises(ValueError, match="val must be >= 1"):
          get_integer(0, "val", min_value=1)
  
      with pytest.raises(ValueError, match="val must be >= 1"):
          get_integer(None, "val", min_value=1, default_value=0)
  
imports: import warnings
  from dataclasses import dataclass
  from typing import List
  import numpy
  import pandas
  import pytest
  import scipy
  from greykite.common import constants
  from greykite.common.evaluation import ElementwiseEvaluationMetricEnum
  from greykite.common.python_utils import apply_func_to_columns
  from greykite.common.python_utils import assert_equal
  from greykite.common.python_utils import dictionaries_values_to_lists
  from greykite.common.python_utils import dictionary_values_to_lists
  from greykite.common.python_utils import flatten_list
  from greykite.common.python_utils import get_integer
  from greykite.common.python_utils import get_pattern_cols
  from greykite.common.python_utils import group_strs_with_regex_patterns
  from greykite.common.python_utils import ignore_warnings
  from greykite.common.python_utils import mutable_field
  from greykite.common.python_utils import reorder_columns
  from greykite.common.python_utils import split_offset_str
  from greykite.common.python_utils import unique_dict_in_list
  from greykite.common.python_utils import unique_elements_in_list
  from greykite.common.python_utils import unique_in_list
  from greykite.common.python_utils import update_dictionaries
  from greykite.common.python_utils import update_dictionary
label_desc: Use image node_id 14 for calling a global function with example usage: test_get_integer() without return types