<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def plotants(vis, figfile):
 """Plot the physical layout of the antennas described in the MS. vis (str) Path to the input dataset figfile (str) Path to the output image file. The output image format will be inferred from the extension of *figfile*. Example:: from pwkit.environments.casa import tasks tasks.plotants('dataset.ms', 'antennas.png') """

    from .scripting import CasapyScript

    script = os.path.join(os.path.dirname(__file__), 'cscript_plotants.py')

    with CasapyScript(script, vis=vis, figfile=figfile) as cs:
        pass