original_docstring: 
          Closes the given page.
          Note: There must be at least one open page.
  
          :param page: the page to close
          :raise CrawlerNotRunningError: if the crawler is not running
          :raise ValueError: if the given page is the last one open
          
docstring: Closes the given page.
  Note: There must be at least one open page.
docstring_tokens: Closes the given page . Note : There must be at least one open page .
code: def close_page(self, page: BrowserPage) -> None:
          """
          Closes the given page.
          Note: There must be at least one open page.
  
          :param page: the page to close
          :raise CrawlerNotRunningError: if the crawler is not running
          :raise ValueError: if the given page is the last one open
          """
  
          self._check_if_crawler_running()
  
          pages = syncer.sync(self._browser.pages())
          if len(pages) == 1:
              raise ValueError('Cannot close the last page')
  
          syncer.sync(pages[page.index].close())
code_tokens: def close_page ( self , page : BrowserPage ) -> None : self . _check_if_crawler_running ( ) pages = syncer . sync ( self . _browser . pages ( ) ) if len ( pages ) == 1 : raise ValueError ( 'Cannot close the last page' ) syncer . sync ( pages [ page . index ] . close ( ) )
short_docstring: Closes the given page.
short_docstring_tokens: Closes the given page .
comment: """
          Closes the given page.
          Note: There must be at least one open page.
  
          :param page: the page to close
          :raise CrawlerNotRunningError: if the crawler is not running
          :raise ValueError: if the given page is the last one open
          """