code: def safe_nominal(value, pvalue):
      svalue = value.strip()
      if svalue in pvalue:
          return svalue
      elif svalue == "?":
          return svalue
      else:
          raise ValueError(
              "%s value not in %s" % (str(svalue), str(pvalue))
          )
  
imports: from __future__ import division, print_function, absolute_import
  import re
  import itertools
  import datetime
  from functools import partial
  import numpy
  from scipy._lib.six import next
label_desc: Use image node_id 14 for calling a global function with example usage: safe_nominal(value, pvalue) and returns: svalue, svalue