code: def _int_or_none(o):
      return isinstance(o, (int, type(None)))
  
imports: from typing import Any, Callable
  import tensorflow
  import tree
label_desc: Use image node_id 1 for calling a global function with example usage: _int_or_none(o) and returns: isinstance