code: def is_categorical_split(self, id) -> bool:
      node_condition = self.tree_nodes[id].condition
  
      if hasattr(node_condition, "threshold"):
          return False
      return True
  
imports: from collections import defaultdict
  from typing import List, Mapping
  import numpy
  import tensorflow_decision_forests
  from tensorflow_decision_forests.component.py_tree.node import LeafNode
  from tensorflow_decision_forests.keras import RandomForestModel
  from tensorflow_decision_forests.tensorflow.core import Task
  from dtreeviz.models.shadow_decision_tree import ShadowDecTree, VisualisationNotYetSupportedError
label_desc: Use image node_id 21 for calling the ShadowTensorflowTree obj's underlying member method code with example usage: obj.is_categorical_split(id) and returns: True, False