code: def get_data_validator_instance(base_trace_node: TraceNode):
      """
      Construct an instance of the DataValidator
      (this is the validator that inputs a list of traces)
  
      Parameters
      ----------
      base_trace_node :
          PlotlyNode that is the parent of all of the individual trace nodes
      Returns
      -------
      BaseDataValidator
      """
  
      # Build constructor params
      # ------------------------
      # We need to eval the values to convert out of the repr-form of the
      # params. e.g. '3' -> 3
      params = build_data_validator_params(base_trace_node)
      eval_params = {
          k: eval(repr_val) for k, repr_val in params.items()
      }
  
      # Build and return BaseDataValidator instance
      # -------------------------------------------
      return _plotly_utils.basevalidators.BaseDataValidator(
          **eval_params
      )
  
file_path: plotly.py/packages/python/plotly/codegen/validators.py
imports: import os.path
  from io import StringIO
  import _plotly_utils.basevalidators
  from codegen.utils import PlotlyNode, TraceNode, write_source_py
label_desc: Use image node_id 5 for calling a global function with example usage: get_data_validator_instance(base_trace_node) and returns: _plotly_utils