code: def check_data_query_args(data_query_time, data_query_tz):
      """Checks the data_query_time and data_query_tz arguments for loaders
      and raises a standard exception if one is None and the other is not.
  
      Parameters
      ----------
      data_query_time : datetime.time or None
      data_query_tz : tzinfo or None
  
      Raises
      ------
      ValueError
          Raised when only one of the arguments is None.
      """
      if (data_query_time is None) ^ (data_query_tz is None):
          raise ValueError(
              "either 'data_query_time' and 'data_query_tz' must both be"
              " None or neither may be None (got %r, %r)"
              % (
                  data_query_time,
                  data_query_tz,
              ),
          )
  
file_path: catalyst/catalyst/pipeline/loaders/utils.py
imports: import datetime
  import numpy
  import pandas
  from catalyst.pipeline.common import TS_FIELD_NAME, SID_FIELD_NAME
  from catalyst.utils.numpy_utils import categorical_dtype
  from catalyst.utils.pandas_utils import mask_between_time
label_desc: Use image node_id 8 for calling a global function with example usage: check_data_query_args(data_query_time, data_query_tz) without return types