code: def weird_binary_case():
      # See bug https://github.com/parrt/dtreeviz/issues/17
      import numpy as np
      from sklearn.tree import DecisionTreeClassifier
      from dtreeviz.trees import dtreeviz
  
      x = np.random.choice([-1, 1], size=(100, 2))
      y = np.random.choice([0, 1], size=100)
  
      viz = dtreeviz(
          tree_model=DecisionTreeClassifier(max_depth=1).fit(x, y),
          X_train=x,
          y_train=y,
          feature_names=["a", "b"],
          target_name="y",
          class_names=[1, 0],
      )
      return viz
  
file_path: dtreeviz/testing/testone.py
imports: import graphviz
  from dtreeviz.shadow import *
  from gen_samples import *
  import tempfile
  from sklearn.tree import export_graphviz
label_desc: Use image node_id 7 for calling a global function with example usage: weird_binary_case() and returns: viz