code: def _perform_static_validation(
      bond_cashflows,
      bond_cashflow_times,
      present_values,
      pv_settle_times,
  ):
      """Performs static validation on the arguments."""
      if len(bond_cashflows) != len(bond_cashflow_times):
          raise ValueError(
              "Cashflow times and bond_cashflows must be of the same length."
              "bond_cashflows are of size"
              " {} and times of size {}".format(
                  len(bond_cashflows), len(bond_cashflow_times)
              )
          )
  
      if len(bond_cashflows) != len(present_values):
          raise ValueError(
              "Present values and bond_cashflows must be of the same length."
              "bond_cashflows are of size"
              " {} and PVs of size {}".format(
                  len(bond_cashflows), len(present_values)
              )
          )
  
      if len(present_values) != len(pv_settle_times):
          raise ValueError(
              "Present value settlement times and present values must be of"
              "the same length. Settlement times are of size"
              " {} and PVs of size {}".format(
                  len(pv_settle_times), len(present_values)
              )
          )
  
      if len(bond_cashflows) < 2:
          raise ValueError(
              "At least two bonds must be supplied to calibrate the curve."
              "Found {}.".format(len(bond_cashflows))
          )
  
file_path: tf-quant-finance/tf_quant_finance/rates/hagan_west/bond_curve.py
imports: import tensorflow.compat.v2
  from tf_quant_finance import types
  from tf_quant_finance import utils
  from tf_quant_finance.rates.analytics import cashflows
  from tf_quant_finance.rates.hagan_west import monotone_convex
label_desc: Use image node_id 4 for calling a global function with example usage: _perform_static_validation(bond_cashflows, bond_cashflow_times, present_values, pv_settle_times) without return types