code: def data_prepare_opts(parser, build_vocab_only=False):
      """Options related to data prepare in dynamic mode.
  
      Add all dynamic data prepare related options to parser.
      If `build_vocab_only` set to True, then only contains options that
      will be used in `onmt/bin/build_vocab.py`.
      """
      config_opts(parser)
      _add_dataset_opts(parser, build_vocab_only=build_vocab_only)
      _add_vocab_opts(parser, build_vocab_only=build_vocab_only)
      _add_transform_opts(parser)
  
      if build_vocab_only:
          _add_reproducibility_opts(parser)
  
imports: import configargparse
  from onmt.modules.sru import CheckSRU
  from onmt.transforms import AVAILABLE_TRANSFORMS
  from onmt.constants import ModelTask
  from onmt.modules.position_ffn import ACTIVATION_FUNCTIONS
  from onmt.modules.position_ffn import ActivationFunction
  from onmt.constants import DefaultTokens
label_desc: Use image node_id 8 for calling a global function with example usage: data_prepare_opts(parser, build_vocab_only) without return types