code: def _run_command(command_args: List[str]) -> str:
      """Run kaggle command with subprocess.
  
      Args:
        command_args: Arguments to the kaggle api.
  
      Returns:
        output of the command.
  
      Raises:
        CalledProcessError: If the command terminates with exit status 1.
      """
      command_str = " ".join(command_args)
      competition_or_dataset = command_args[-1]
      try:
          return subprocess.check_output(command_args, encoding="UTF-8")
      except (subprocess.CalledProcessError, FileNotFoundError) as err:
          if (
              isinstance(err, subprocess.CalledProcessError)
              and "404" in err.output
          ):
              raise ValueError(
                  textwrap.dedent(
                      """\
        Error for command: {}
  
        Competition {} not found. Please ensure you have spelled the name
        correctly.
        """
                  ).format(command_str, competition_or_dataset)
              )
          else:
              raise RuntimeError(
                  textwrap.dedent(
                      """\
        Error for command: {}
  
        To download Kaggle data through TFDS, follow the instructions to install
        the kaggle API and get API credentials:
        https://github.com/Kaggle/kaggle-api#installation
  
        Additionally, you may have to join the competition through the Kaggle
        website: https://www.kaggle.com/c/{}
        """
                  ).format(command_str, competition_or_dataset)
              )
  
file_path: datasets/tensorflow_datasets/core/download/kaggle.py
imports: import os
  import subprocess
  import textwrap
  from typing import List
  import zipfile
  from absl import logging
  from etils import epath
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.download import extractor
  from tensorflow_datasets.core.download import resource
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: _run_command(command_args) and returns: subprocess