class_docstr: The MediaWiki Pages Table implementation
code: def get_pages(
      self, title: str = None, page_id: int = None, limit: int = 20
  ):
      query_parts = []
  
      query_parts.append(
          f"intitle:{title}"
      ) if title is not None else None
      query_parts.append(
          f"pageid:{page_id}"
      ) if page_id is not None else None
  
      search_query = " | ".join(query_parts)
  
      connection = self.handler.connect()
  
      if search_query:
          return [
              self.convert_page_to_dict(
                  connection.page(result, auto_suggest=False)
              )
              for result in connection.search(
                  search_query, results=limit
              )
          ]
      else:
          return [
              self.convert_page_to_dict(
                  connection.page(result, auto_suggest=False)
              )
              for result in connection.random(pages=limit)
          ]
  
file_path: mindsdb/mindsdb/integrations/handlers/mediawiki_handler/mediawiki_tables.py
imports: import pandas
  from typing import List
  from mindsdb.integrations.libs.api_handler import APITable
  from mindsdb_sql.parser import ast
  from mindsdb.integrations.handlers.utilities.query_utilities import SELECTQueryParser, SELECTQueryExecutor
  from mindsdb.utilities import log
label_desc: Use image node_id 3 for calling the PagesTable obj's underlying member method code with example usage: obj.get_pages(title, page_id, limit) and returns: unknown, unknown