code: def main(args):
      file = args.file
      config = args.config
      outdir = args.dir
  
      if not file:
          file = Path(__file__).parent / "data.json"
      if not config:
          config = Path(__file__).parent / "table_config.yaml"
      if not outdir:
          outdir = Path(__file__).parent / "source" / "generated"
  
      smx2rst = Smx2Rst(file)
      smx2rst.read_table_config(config)
      smx2rst.from_json()
      smx2rst.to_rst(outdir)
  
file_path: Merlin/docs/smx2rst.py
imports: import argparse
  import json
  import logging
  import os
  import re
  import sys
  import typing
  from pathlib import Path
  import yaml
  from mergedeep import merge
label_desc: Use image node_id 1 for calling a global function with example usage: main(args) without return types