code: def nearIntegersPredicate(field: str) -> FrozenSet[str]:
      """for any integer N in field return the integers N-1, N and N+1"""
      string_ints = integers(field)
      near_ints = set()
      for s in string_ints:
          num = int(s)
          near_ints.add(str(num - 1))
          near_ints.add(str(num))
          near_ints.add(str(num + 1))
  
      return frozenset(near_ints)
  
imports: import re
  from itertools import chain
  from math import copysign, floor, log10
  from typing import Any, FrozenSet, Sequence, Tuple, Union
  from doublemetaphone import doublemetaphone
  from dedupe.cpredicates import initials, ngrams, unique_ngrams
label_desc: Use image node_id 7 for calling a global function with example usage: nearIntegersPredicate(field) and returns: frozenset