code: def _check_node_redundancy(
      causal_nodes_info: dict, node_name: str
  ) -> None:
      if node_name in causal_nodes_info:
          raise Exception(
              f"The node {node_name} is specified twice which is not allowed."
          )
  
imports: import ast
  import logging
  import re
  from typing import Tuple
  import networkx
  import numpy
  import scipy.stats
  from dowhy.gcm import AdditiveNoiseModel, EmpiricalDistribution, ScipyDistribution, StructuralCausalModel
  from dowhy.gcm.causal_mechanisms import StochasticModel
  from dowhy.gcm.causal_models import PARENTS_DURING_FIT
  from dowhy.gcm.ml.prediction_model import PredictionModel
  from dowhy.gcm.util.general import shape_into_2d
  from dowhy.graph import get_ordered_predecessors
label_desc: Use image node_id 9 for calling a global function with example usage: _check_node_redundancy(causal_nodes_info, node_name) without return types