docstr: Validate the 'usecols' parameter.
  
  Checks whether or not the 'usecols' parameter contains all integers
  (column selection by index), strings (column by name) or is a callable.
  Raises a ValueError if that is not the case.
  
  Parameters
  ----------
  usecols : list-like, callable, or None
      List of columns to use when parsing or a callable that can be used
      to filter a list of table columns.
  
  Returns
  -------
  usecols_tuple : tuple
      A tuple of (verified_usecols, usecols_dtype).
  
      'verified_usecols' is either a set if an array-like is passed in or
      'usecols' if a callable or None is passed in.
  
      'usecols_dtype` is the inferred dtype of 'usecols' if an array-like
      is passed in or None if a callable or None is passed in.
docstr_tok: ["Validate","the","'usecols","'","parameter",".","Checks","whether","or","not","the","'usecols","'","parameter","contains","all","integers","(","column","selection","by","index",")",",","strings","(","column","by","name",")","or","is","a","callable",".","Raises","a","ValueError","if","that","is","not","the","case",".","Parameters","--","--","--","--","--","usecols",":","list-like",",","callable",",","or","None","List","of","columns","to","use","when","parsing","or","a","callable","that","can","be","used","to","filter","a","list","of","table","columns",".","Returns","--","--","--","-","usecols_tuple",":","tuple","A","tuple","of","(","verified_usecols",",","usecols_dtype",")",".","'verified_usecols","'","is","either","a","set","if","an","array-like","is","passed","in","or","'usecols","'","if","a","callable","or","None","is","passed","in",".","'usecols_dtype","`","is","the","inferred","dtype","of","'usecols","'","if","an","array-like","is","passed","in","or","None","if","a","callable","or","None","is","passed","in","."]
code: def _validate_usecols_arg(self, usecols):
      """
      Validate the 'usecols' parameter.
  
      Checks whether or not the 'usecols' parameter contains all integers
      (column selection by index), strings (column by name) or is a callable.
      Raises a ValueError if that is not the case.
  
      Parameters
      ----------
      usecols : list-like, callable, or None
          List of columns to use when parsing or a callable that can be used
          to filter a list of table columns.
  
      Returns
      -------
      usecols_tuple : tuple
          A tuple of (verified_usecols, usecols_dtype).
  
          'verified_usecols' is either a set if an array-like is passed in or
          'usecols' if a callable or None is passed in.
  
          'usecols_dtype` is the inferred dtype of 'usecols' if an array-like
          is passed in or None if a callable or None is passed in.
      """
      msg = (
          "'usecols' must either be list-like of all strings, all unicode, "
          "all integers or a callable."
      )
      if usecols is not None:
          if callable(usecols):
              return usecols, None
  
          if not is_list_like(usecols):
              # see gh-20529
              #
              # Ensure it is iterable container but not string.
              raise ValueError(msg)
  
          usecols_dtype = lib.infer_dtype(usecols, skipna=False)
  
          if usecols_dtype not in ("empty", "integer", "string"):
              raise ValueError(msg)
  
          usecols = set(usecols)
  
          return usecols, usecols_dtype
      return usecols, None
  
imports: from __future__ import annotations
  from collections import defaultdict
  from copy import copy
  import csv
  import datetime
  from enum import Enum
  import itertools
  from typing import TYPE_CHECKING, Any, Callable, Hashable, Iterable, List, Mapping, Sequence, Tuple, cast, final, overload
  import warnings
  import numpy
  from pandas._libs import lib, parsers
  import pandas._libs.ops
  from pandas._libs.parsers import STR_NA_VALUES
  from pandas._libs.tslibs import parsing
  from pandas._typing import ArrayLike, DtypeArg, DtypeObj, Scalar
  from pandas.compat._optional import import_optional_dependency
  from pandas.errors import ParserError, ParserWarning
  from pandas.util._exceptions import find_stack_level
  from pandas.core.dtypes.astype import astype_array
  from pandas.core.dtypes.common import ensure_object, is_bool_dtype, is_dict_like, is_dtype_equal, is_extension_array_dtype, is_float_dtype, is_integer, is_integer_dtype, is_list_like, is_object_dtype, is_scalar, is_string_dtype, pandas_dtype
  from pandas.core.dtypes.dtypes import CategoricalDtype, ExtensionDtype
  from pandas.core.dtypes.missing import isna
  from pandas import ArrowDtype, DatetimeIndex, StringDtype
  from pandas.core import algorithms
  from pandas.core.arrays import ArrowExtensionArray, BooleanArray, Categorical, ExtensionArray, FloatingArray, IntegerArray
  from pandas.core.arrays.boolean import BooleanDtype
  from pandas.core.indexes.api import Index, MultiIndex, default_index, ensure_index_from_sequences
  from pandas.core.series import Series
  from pandas.core.tools import datetimes
  from pandas.io.common import is_potential_multi_index
label_desc: Use image node_id 25 for calling the ParserBase obj's underlying member method code with example usage: obj._validate_usecols_arg(usecols) and returns: usecols,  None, usecols,  usecols_dtype, usecols,  None