<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def run_apidoc(_):
 """This method is required by the setup method below."""

    import os
    dirname = os.path.dirname(__file__)
    ignore_paths = [os.path.join(dirname, '../../aaf2/model'),]
    # https://github.com/sphinx-doc/sphinx/blob/master/sphinx/ext/apidoc.py
    argv = [
        '--force',
        '--no-toc',
        '--separate',
        '--module-first',
        '--output-dir',
        os.path.join(dirname, 'api'),
        os.path.join(dirname, '../../aaf2'),
     ] + ignore_paths

    from sphinx.ext import apidoc
    apidoc.main(argv)