code: def test_string():
      out = string_like("apple", "value")
      assert out == "apple"
  
      out = string_like(
          "apple", "value", options=("apple", "banana", "cherry")
      )
      assert out == "apple"
  
      with pytest.raises(TypeError, match="value must be a string"):
          string_like(1, "value")
      with pytest.raises(TypeError, match="value must be a string"):
          string_like(b"4", "value")
      with pytest.raises(
          ValueError,
          match="value must be one of: 'apple'," " 'banana', 'cherry'",
      ):
          string_like(
              "date", "value", options=("apple", "banana", "cherry")
          )
  
imports: from collections import OrderedDict
  import numpy
  import pandas
  import pytest
  from statsmodels.tools.validation import array_like, PandasWrapper, bool_like, dict_like, float_like, int_like, string_like
  from statsmodels.tools.validation.validation import _right_squeeze
label_desc: Use image node_id 10 for calling a global function with example usage: test_string() without return types