def protoc_command(lang, output_dir, proto_path, refactored_dir):
proto_files = glob.glob(os.path.join(refactored_dir, '<STR_LIT>'))<EOL>cmd = ['<STR_LIT>', '<STR_LIT>', proto_path, '<STR_LIT>'.format(lang), output_dir]<EOL>cmd.extend(proto_files)<EOL>print('<STR_LIT:U+0020>'.join(cmd))<EOL>p = subprocess.Popen(<EOL>cmd, stdout=sys.stdout, stderr=sys.stderr, stdin=sys.stdin,<EOL>cwd=proto_path)<EOL>p.communicate()<EOL>
Runs the "protoc" command on the refactored Protobuf files to generate
    the source python/python3 files.

    Args:
        lang (str): the language to compile with "protoc"
                    (i.e. python, python3)
        output_dir (str): the output directory for the generated source files
        proto_path (str): the root protobuf build path in which to run "protoc"
        refactored_dir (str): the input directory of the Protobuf files