docstr: Verify that the IntervalArray is valid.
  
  Checks that
  
  * closed is valid
  * left and right match lengths
  * left and right have the same missing values
  * left is always below right
docstr_tok: ["Verify","that","the","IntervalArray","is","valid",".","Checks","that","*","closed","is","valid","*","left","and","right","match","lengths","*","left","and","right","have","the","same","missing","values","*","left","is","always","below","right"]
code: def _validate(self):
      """Verify that the IntervalArray is valid.
  
      Checks that
  
      * closed is valid
      * left and right match lengths
      * left and right have the same missing values
      * left is always below right
      """
      if self.closed not in _VALID_CLOSED:
          raise ValueError(
              "invalid option for 'closed': {closed}".format(
                  closed=self.closed
              )
          )
      if len(self.left) != len(self.right):
          raise ValueError("left and right must have the same length")
      left_mask = notna(self.left)
      right_mask = notna(self.right)
      if not (left_mask == right_mask).all():
          raise ValueError(
              "missing values must be missing in the same "
              "location both left and right sides"
          )
      if not (self.left[left_mask] <= self.right[left_mask]).all():
          raise ValueError(
              "left side of interval must be <= right side"
          )
  
imports: from operator import le, lt
  import textwrap
  import numpy
  from pandas._libs.interval import Interval, IntervalMixin, intervals_to_interval_bounds
  from pandas.compat import add_metaclass
  from pandas.compat.numpy import function
  from pandas.util._decorators import Appender
  from pandas.util._doctools import _WritableDoc
  from pandas.core.dtypes.cast import maybe_convert_platform
  from pandas.core.dtypes.common import is_categorical_dtype, is_datetime64_any_dtype, is_float_dtype, is_integer_dtype, is_interval, is_interval_dtype, is_scalar, is_string_dtype, is_timedelta64_dtype, pandas_dtype
  from pandas.core.dtypes.dtypes import IntervalDtype
  from pandas.core.dtypes.generic import ABCDatetimeIndex, ABCInterval, ABCIntervalIndex, ABCPeriodIndex, ABCSeries
  from pandas.core.dtypes.missing import isna, notna
  from pandas.core.arrays.base import ExtensionArray, _extension_array_shared_docs
  from pandas.core.arrays.categorical import Categorical
  import pandas.core.common
  from pandas.core.config import get_option
  from pandas.core.indexes.base import Index, ensure_index
label_desc: Use image node_id 8 for calling the IntervalArray obj's underlying member method code with example usage: obj._validate() without return types