class_docstr: Checker with methods for validate data related options.
docstr: Check `file_path` is valid or raise `IOError`.
docstr_tok: ["Check","`","file_path","`","is","valid","or","raise","`","IOError","`","."]
code: def _validate_file(file_path, info):
      """Check `file_path` is valid or raise `IOError`."""
      if not os.path.isfile(file_path):
          raise IOError(f"Please check path of your {info} file!")
  
imports: import configargparse
  import os
  import torch
  import onmt.opts
  from onmt.utils.logging import logger
  from onmt.constants import CorpusName, ModelTask
  from onmt.transforms import AVAILABLE_TRANSFORMS
label_desc: Use image node_id 1 for calling the DataOptsCheckerMixin obj's underlying member method code with example usage: obj._validate_file(file_path, info) without return types