code: def from_str(classification_type_str):
      if classification_type_str == "single-label":
          return ClassificationType.SINGLE_LABEL
      elif classification_type_str == "multi-label":
          return ClassificationType.MULTI_LABEL
      else:
          raise ValueError(
              "Cannot convert string to classification type enum: "
              f"{classification_type_str}"
          )
  
imports: from enum import Enum
  from functools import partial, wraps
  from scipy.sparse import csr_matrix
label_desc: Use image node_id 1 for calling the ClassificationType obj's underlying member method code with example usage: obj.from_str(classification_type_str) and returns: ClassificationType, ClassificationType