class_docstr: Generate proto stub files in python.
  
  Running this command will populate foo_pb2.py file next to your foo.proto
  file.
class_docstr_tok: ["Generate","proto","stub","files","in","python",".","Running","this","command","will","populate","foo_pb2.py","file","next","to","your","foo.proto","file","."]
code: def run(self):
      bazel_args = ["--compilation_mode", "opt"]
      if self.local_mlmd_repo:
          # If local MLMD repo is given, override com_github_google_ml_metadata
          # remote repository with the local path. This is required to use the
          # local developmental version of MLMD during tests.
          # https://docs.bazel.build/versions/master/command-line-reference.html
          bazel_args.append(
              "--override_repository={}={}".format(
                  "com_github_google_ml_metadata", self.local_mlmd_repo
              )
          )
      cmd = [self._bazel_cmd, "run", *bazel_args, "//build:gen_proto"]
      print("Running Bazel command", cmd, file=sys.stderr)
      subprocess.check_call(
          cmd,
          # Bazel should be invoked in a directory containing bazel WORKSPACE
          # file, which is the root directory.
          cwd=os.path.dirname(os.path.realpath(__file__)),
          env=os.environ,
      )
  
imports: import logging
  import os
  import shutil
  import subprocess
  import sys
  import setuptools
  from setuptools import find_namespace_packages
  from setuptools import setup
  from setuptools.command import develop
  from distutils.command import build
  from tfx import dependencies
  from tfx import version
  from wheel import bdist_wheel
  import package_config
label_desc: Use image node_id 3 for calling the _GenProtoCommand obj's underlying member method code with example usage: obj.run() without return types