class_docstr: VowpalWabbit Model: https://vowpalwabbit.org/
  
  VowpalWabbit Command Line args: https://github.com/VowpalWabbit/vowpal_wabbit/wiki/Command-line-arguments
class_docstr_tok: ["VowpalWabbit","Model",":","https",":","\/\/vowpalwabbit.org\/","VowpalWabbit","Command","Line","args",":","https",":","\/\/github.com\/VowpalWabbit\/vowpal_wabbit\/wiki\/Command-line-arguments"]
code: def _validate_loss_function(self, loss_function):
      # Ref: https://github.com/VowpalWabbit/vowpal_wabbit/wiki/Loss-functions
      if loss_function:
          if self.problem_type in PROBLEM_TYPES_CLASSIFICATION:
              assert (
                  loss_function in self.CLASSIFICATION_LOSS_FUNCTIONS
              ), (
                  f"For {self.problem_type} problem, VW supports: {self.CLASSIFICATION_LOSS_FUNCTIONS}. "
                  f"Got loss_function:{loss_function}"
              )
          elif self.problem_type in PROBLEM_TYPES_REGRESSION:
              assert loss_function in self.REGRESSION_LOSS_FUNCTIONS, (
                  f"For {self.problem_type} problem, VW supports: {self.REGRESSION_LOSS_FUNCTIONS}. "
                  f"Got loss_function:{loss_function}"
              )
  
imports: import logging
  import os
  import time
  import numpy
  import pandas
  from autogluon.common.features.types import R_CATEGORY, R_FLOAT, R_INT, R_OBJECT, S_IMAGE_PATH, S_TEXT_AS_CATEGORY, S_TEXT_NGRAM, S_TEXT_SPECIAL
  from autogluon.common.utils.try_import import try_import_vowpalwabbit
  from autogluon.core.constants import BINARY, MULTICLASS, PROBLEM_TYPES_CLASSIFICATION, PROBLEM_TYPES_REGRESSION, REGRESSION
  from autogluon.core.models import AbstractModel
  from autogluon.core.utils.exceptions import TimeLimitExceeded
  from .vowpalwabbit_utils import VWFeaturesConverter
label_desc: Use image node_id 5 for calling the VowpalWabbitModel obj's underlying member method code with example usage: obj._validate_loss_function(loss_function) without return types