code: def convert_table(text):
      """Convert a table in text from rst to markdown."""
      lines = text.split("\n")
      new_lines = []
      for line in lines:
          if _re_ignore_line_table.search(line) is not None:
              continue
          if _re_ignore_line_table1.search(line) is not None:
              continue
          if _re_sep_line_table.search(line) is not None:
              line = line.replace("=", "-").replace("+", "|")
          new_lines.append(line)
      return "\n".join(new_lines)
  
imports: import nbformat
  import os
  import re
  import shutil
label_desc: Use image node_id 10 for calling a global function with example usage: convert_table(text) and returns: str