class_docstr: Build binary graphs and download external files of various MediaPipe modules.
class_docstr_tok: ["Build","binary","graphs","and","download","external","files","of","various","MediaPipe","modules","."]
docstr: Generate binary graph for a particular MediaPipe binary graph target.
code: def _generate_binary_graph(self, binary_graph_target):
      """Generate binary graph for a particular MediaPipe binary graph target."""
  
      bazel_command = [
          "bazel",
          "build",
          "--compilation_mode=opt",
          "--copt=-DNDEBUG",
          "--action_env=PYTHON_BIN_PATH="
          + _normalize_path(sys.executable),
          binary_graph_target,
      ] + GPU_OPTIONS
  
      if not self.link_opencv and not IS_WINDOWS:
          bazel_command.append("--define=OPENCV=source")
  
      _invoke_shell_command(bazel_command)
      _copy_to_build_lib_dir(self.build_lib, binary_graph_target)
  
imports: import glob
  import os
  import platform
  import posixpath
  import re
  import shlex
  import shutil
  import subprocess
  import sys
  import setuptools
  from setuptools.command import build_ext
  from setuptools.command import build_py
  from setuptools.command import install
label_desc: Use image node_id 5 for calling the BuildModules obj's underlying member method code with example usage: obj._generate_binary_graph(binary_graph_target) without return types