docstr: Return a new IntervalArray with the replacement attributes
  
  Parameters
  ----------
  left : array-like
      Values to be used for the left-side of the the intervals.
      If None, the existing left and right values will be used.
  
  right : array-like
      Values to be used for the right-side of the the intervals.
      If None and left is IntervalArray-like, the left and right
      of the IntervalArray-like will be used.
  
  closed : {'left', 'right', 'both', 'neither'}, optional
      Whether the intervals are closed on the left-side, right-side, both
      or neither.  If None, the existing closed will be used.
docstr_tok: ["Return","a","new","IntervalArray","with","the","replacement","attributes","Parameters","--","--","--","--","--","left",":","array-like","Values","to","be","used","for","the","left-side","of","the","the","intervals",".","If","None",",","the","existing","left","and","right","values","will","be","used",".","right",":","array-like","Values","to","be","used","for","the","right-side","of","the","the","intervals",".","If","None","and","left","is","IntervalArray-like",",","the","left","and","right","of","the","IntervalArray-like","will","be","used",".","closed",":","{","'left","'",",","'right","'",",","'both","'",",","'neither","'","}",",","optional","Whether","the","intervals","are","closed","on","the","left-side",",","right-side",",","both","or","neither",".","If","None",",","the","existing","closed","will","be","used","."]
code: def _shallow_copy(self, left=None, right=None, closed=None):
      """
      Return a new IntervalArray with the replacement attributes
  
      Parameters
      ----------
      left : array-like
          Values to be used for the left-side of the the intervals.
          If None, the existing left and right values will be used.
  
      right : array-like
          Values to be used for the right-side of the the intervals.
          If None and left is IntervalArray-like, the left and right
          of the IntervalArray-like will be used.
  
      closed : {'left', 'right', 'both', 'neither'}, optional
          Whether the intervals are closed on the left-side, right-side, both
          or neither.  If None, the existing closed will be used.
      """
      if left is None:
          # no values passed
          left, right = self.left, self.right
  
      elif right is None:
          # only single value passed, could be an IntervalArray
          # or array of Intervals
          if not isinstance(left, (type(self), ABCIntervalIndex)):
              left = type(self)(left)
  
          left, right = left.left, left.right
      else:
          # both left and right are values
          pass
  
      closed = closed or self.closed
      return self._simple_new(
          left, right, closed=closed, verify_integrity=False
      )
  
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 17 for calling the IntervalArray obj's underlying member method code with example usage: obj._shallow_copy(left, right, closed) and returns: self