code: def infer_task_type_by_class_number(num_classes):
      """Infer task type of binary or multiclass."""
      if num_classes == 0:
          raise ValidationError("Found zero number of classes")
      if num_classes == 1:
          raise ValidationError(
              "Found only one class in label column, pass the full list of possible "
              "label classes via the model_classes argument of the run function."
          )
      return (
          TaskType.BINARY if num_classes == 2 else TaskType.MULTICLASS
      )
  
file_path: deepchecks/deepchecks/tabular/utils/task_inference.py
imports: from typing import Optional
  import numpy
  import pandas
  from pandas._libs.lib import infer_dtype
  from deepchecks.core.errors import ValidationError
  from deepchecks.tabular.utils.task_type import TaskType
  from deepchecks.utils.array_math import sequence_to_numpy
  from deepchecks.utils.logger import get_logger
  from deepchecks.utils.type_inference import is_categorical
  from deepchecks.utils.typing import BasicModel
label_desc: Use image node_id 4 for calling a global function with example usage: infer_task_type_by_class_number(num_classes) and returns: unknown