code: def _verify_common_row_format_components(
      crow_indices=None,
      col_indices=None,
      values=None,
      dense_shape=None,
      format="csr",
  ):
      ivy.utils.assertions.check_all_or_any_fn(
          crow_indices,
          col_indices,
          values,
          dense_shape,
          fn=ivy.exists,
          type="all",
          message=(
              "crow_indices, col_indices, values and dense_shape must all be specified."
          ),
      )
  
      ivy.utils.assertions.check_equal(
          len(ivy.shape(crow_indices)),
          1,
          message="crow_indices must be 1D.",
          as_array=False,
      )
      ivy.utils.assertions.check_equal(
          len(ivy.shape(col_indices)),
          1,
          message="col_indices must be 1D.",
          as_array=False,
      )
  
      ivy.utils.assertions.check_equal(
          len(dense_shape),
          2,
          message=f"Only 2D arrays can be converted to {format.upper()} sparse arrays.",
          as_array=False,
      )
  
      ivy.utils.assertions.check_equal(
          ivy.shape(col_indices)[0],
          crow_indices[-1],
          message="size of col_indices does not match with last element of crow_indices",
      )
  
      # number of values must match number of coordinates
      ivy.utils.assertions.check_equal(
          ivy.shape(col_indices)[0],
          ivy.shape(values)[0],
          message="values and col_indices do not match",
          as_array=False,
      )
  
      # index in crow_indices must not exceed length of col_indices
      ivy.utils.assertions.check_less(
          crow_indices,
          ivy.shape(col_indices)[0],
          allow_equal=True,
          message="index in crow_indices does not match the number of col_indices",
      )
  
imports: import ivy
  from ivy.func_wrapper import inputs_to_native_arrays
  from ivy.utils.exceptions import handle_exceptions
label_desc: Use image node_id 2 for calling a global function with example usage: _verify_common_row_format_components(crow_indices, col_indices, values, dense_shape, format) without return types