def METHOD_NAME(table_text):
    """
    function to insert the names table into the docstring
    should be run when name mapping is updated.
    """
    this = __file__
    tempfile = "names.temp.py"
    with open(this) as infile:
        contents = iter(infile.readlines())
    with open(tempfile, 'w') as outfile:
        for line in contents:
            outfile.write(line)
            if "**Name Mapping:**" in line:
               break
        outfile.write("\n")
        outfile.write(table_text)
        outfile.write("\n")
        for line in contents:
            if line.strip() == '"""':
                outfile.write(line)
                break
        for line in contents:
            outfile.write(line)
    shutil.copy(tempfile, this)
    os.remove(tempfile)