trees.py
def insert(self, name: str, point: Tuple[int, int]) -> None:
        """Insert a player named <name> into this tree at point <point>.

        Raise an OutOfBoundsError if <point> is out of bounds.

        Raise an OutOfBoundsError if moving the player would place the player at
        exactly the same coordinates of another player in the Tree (before
        moving the player).

        Runtime: O(log(n))

        >>> tree = TwoDTree((0, 0), (500, 500))
        >>> tree.insert('a', (250, 250))
        >>> 'a' in tree
        True
        >>> tree.contains_point((250, 250))
        True
        >>> tree.insert('b', (100, 150))
        >>> 'b' in tree
        True
        >>> tree.contains_point((100, 150))
        True
        >>> tree.__getattribute__('_lt') is not None
        True
        """
        x1, y1 = point
        if x1 < self._nw[0] or x1 > self._se[0] or y1 < self._nw[1] or \
                y1 > self._se[1] or self.contains_point(point):
            raise OutOfBoundsError
        self._help_insert(name, point)
Insert a player named <name> into this tree at point <point>.

        Raise an OutOfBoundsError if <point> is out of bounds.

        Raise an OutOfBoundsError if moving the player would place the player at
        exactly the same coordinates of another player in the Tree (before
        moving the player).

        Runtime: O(log(n))

        >>> tree = TwoDTree((0, 0), (500, 500))
        >>> tree.insert('a', (250, 250))
        >>> 'a' in tree
        True
        >>> tree.contains_point((250, 250))
        True
        >>> tree.insert('b', (100, 150))
        >>> 'b' in tree
        True
        >>> tree.contains_point((100, 150))
        True
        >>> tree.__getattribute__('_lt') is not None
        True
        
Insert a player named  into this tree at point .
Raise an OutOfBoundsError if  is out of bounds.

Raise an OutOfBoundsError if moving the player would place the player at
exactly the same coordinates of another player in the Tree (before
moving the player).




Insert a player named into this tree at point . Raise an OutOfBoundsError if is out of bounds . Raise an OutOfBoundsError if moving the player would place the player at exactly the same coordinates of another player in the Tree ( before moving the player ) .
def insert(self, name: str, point: Tuple[int, int]) -> None:
        x1, y1 = point
        if x1 < self._nw[0] or x1 > self._se[0] or y1 < self._nw[1] or \
                y1 > self._se[1] or self.contains_point(point):
            raise OutOfBoundsError
        self._help_insert(name, point)
def insert ( self , name : str , point : Tuple [ int , int ] ) -> None : x1 , y1 = point if x1 < self . _nw [ 0 ] or x1 > self . _se [ 0 ] or y1 < self . _nw [ 1 ] or y1 > self . _se [ 1 ] or self . contains_point ( point ) : raise OutOfBoundsError self . _help_insert ( name , point )
Insert a player named <name> into this tree at point <point>.
Insert a player named <name > into this tree at point <point > .
"""Insert a player named <name> into this tree at point <point>.

        Raise an OutOfBoundsError if <point> is out of bounds.

        Raise an OutOfBoundsError if moving the player would place the player at
        exactly the same coordinates of another player in the Tree (before
        moving the player).

        Runtime: O(log(n))

        >>> tree = TwoDTree((0, 0), (500, 500))
        >>> tree.insert('a', (250, 250))
        >>> 'a' in tree
        True
        >>> tree.contains_point((250, 250))
        True
        >>> tree.insert('b', (100, 150))
        >>> 'b' in tree
        True
        >>> tree.contains_point((100, 150))
        True
        >>> tree.__getattribute__('_lt') is not None
        True
        """
self
name
str
point
Tuple[int, int]