class_docstr: Representation of a box of intervals bounds.
docstr: Get the intersection of two interval boxes. This function modifies this box instance.
  
  :param box: Interval box to intersect with this box.
docstr_tok: ["Get","the","intersection","of","two","interval","boxes",".","This","function","modifies","this","box","instance",".",":","param","box",":","Interval","box","to","intersect","with","this","box","."]
code: def intersect_with_box(self, box: "Box") -> None:
      """
      Get the intersection of two interval boxes. This function modifies this box instance.
  
      :param box: Interval box to intersect with this box.
      """
      for key, value in box.intervals.items():
          if key not in self.intervals:
              self.intervals[key] = value
          else:
              lower_bound = max(
                  self.intervals[key].lower_bound, value.lower_bound
              )
              upper_bound = min(
                  self.intervals[key].upper_bound, value.upper_bound
              )
  
              if lower_bound >= upper_bound:  # pragma: no cover
                  self.intervals.clear()
                  break
  
              self.intervals[key] = Interval(lower_bound, upper_bound)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import logging
  from typing import Dict, List, Optional, Tuple, Union, TYPE_CHECKING
  import numpy
  from tqdm.auto import trange
  from art.utils import check_and_transform_label_format
label_desc: Use image node_id 2 for calling the Box obj's underlying member method code with example usage: obj.intersect_with_box(box) without return types