class_docstr: PredictionSingletonBase
class_docstr_tok: ["PredictionSingletonBase"]
docstr: Validates the regular expression
docstr_tok: ["Validates","the","regular","expression"]
code: def task_name_validate_regular_expression(cls, value):
      """Validates the regular expression"""
      if not re.match(r"^[a-zA-Z0-9][a-zA-Z0-9 ._-]+$", value):
          raise ValueError(
              r"must validate the regular expression /^[a-zA-Z0-9][a-zA-Z0-9 ._-]+$/"
          )
      return value
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/prediction_singleton_base.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  import lightly.openapi_generated.swagger_client.models
  from typing import Optional, Union
  from pydantic import Extra, BaseModel, Field, StrictStr, confloat, conint, constr, validator
label_desc: Use image node_id 1 for calling the PredictionSingletonBase obj's underlying member method code with example usage: obj.task_name_validate_regular_expression(cls, value) and returns: value