code: def is_discrete(X: np.ndarray) -> bool:
      """Checks if all values in the given array are discrete.
  
      :param X: Input array to check.
      :return: True if all values in the input are discrete, False otherwise.
      """
      return np.all(X == np.floor(X))
  
imports: import random
  from typing import Dict, Optional, Union
  import numpy
  from scipy.optimize import minimize
  from sklearn.preprocessing import OneHotEncoder
  from dowhy.gcm.util.catboost_encoder import CatBoostEncoder
label_desc: Use image node_id 11 for calling a global function with example usage: is_discrete(X) and returns: np