def is_neighbor(self, block):
if block is not self:<EOL><INDENT>block_max_corner, _ = block.get_corners()<EOL>dimension = len(block_max_corner)<EOL>neighborhood_score = self.__calculate_neighborhood(block_max_corner)<EOL>if neighborhood_score == dimension:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
!
        @brief Performs calculation to identify whether specified block is neighbor of current block.
        @details It also considers diagonal blocks as neighbors.

        @param[in] block (spatial_block): Another block that is check whether it is neighbor.

        @return (bool) True is blocks are neighbors, False otherwise.