@staticmethod<EOL><INDENT>def make_fout(fout='<STR_LIT>', fmt='<STR_LIT>'):<DEDENT>
if fmt == '<STR_LIT>':       <EOL><INDENT>from pcapkit.dumpkit import PCAP as output<EOL><DEDENT>elif fmt == '<STR_LIT>':    <EOL><INDENT>from dictdumper import PLIST as output<EOL><DEDENT>elif fmt == '<STR_LIT>':     <EOL><INDENT>from dictdumper import JSON as output<EOL><DEDENT>elif fmt == '<STR_LIT>':     <EOL><INDENT>from dictdumper import Tree as output<EOL>fmt = '<STR_LIT>'<EOL><DEDENT>elif fmt == '<STR_LIT:html>':     <EOL><INDENT>from dictdumper import JavaScript as output<EOL>fmt = '<STR_LIT>'<EOL><DEDENT>elif fmt == '<STR_LIT>':      <EOL><INDENT>from dictdumper import XML as output<EOL><DEDENT>else:                   <EOL><INDENT>from pcapkit.dumpkit import NotImplementedIO as output<EOL>if fmt is not None:<EOL><INDENT>warnings.warn(f'<STR_LIT>',<EOL>FormatWarning, stacklevel=stacklevel())<EOL><DEDENT>return output, '<STR_LIT>'<EOL><DEDENT>try:<EOL><INDENT>pathlib.Path(fout).mkdir(parents=True, exist_ok=True)<EOL><DEDENT>except FileExistsError as error:<EOL><INDENT>if fmt is None:<EOL><INDENT>warnings.warn(error.strerror, FileWarning, stacklevel=stacklevel())<EOL><DEDENT>else:<EOL><INDENT>raise FileExists(*error.args) from None<EOL><DEDENT><DEDENT>return output, fmt<EOL>
Make root path for output.

        Positional arguments:
            * fout -- str, root path for output
            * fmt -- str, output format

        Returns:
            * output -- dumper of specified format