class_docstr: Generate metadata python schema files.
class_docstr_tok: ["Generate","metadata","python","schema","files","."]
code: def run(self):
      for target in [
          "image_segmenter_metadata_schema_py",
          "metadata_schema_py",
          "object_detector_metadata_schema_py",
          "schema_py",
      ]:
          bazel_command = [
              "bazel",
              "build",
              "--compilation_mode=opt",
              "--action_env=PYTHON_BIN_PATH="
              + _normalize_path(sys.executable),
              "//mediapipe/tasks/metadata:" + target,
          ] + GPU_OPTIONS
  
          _invoke_shell_command(bazel_command)
          _copy_to_build_lib_dir(
              self.build_lib,
              "mediapipe/tasks/metadata/" + target + "_generated.py",
          )
      for schema_file in [
          "mediapipe/tasks/metadata/metadata_schema.fbs",
          "mediapipe/tasks/metadata/object_detector_metadata_schema.fbs",
          "mediapipe/tasks/metadata/image_segmenter_metadata_schema.fbs",
      ]:
          shutil.copyfile(
              schema_file,
              os.path.join(self.build_lib + "/", schema_file),
          )
  
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 1 for calling the GenerateMetadataSchema obj's underlying member method code with example usage: obj.run() without return types