class_docstr: A setting that provides an image name
class_docstr_tok: ["A","setting","that","provides","an","image","name"]
code: def test_valid(self, pipeline):
      if self.value_text in ["Experiment", "Image", "Relationship"]:
          raise ValidationError(
              "Object names may not be any of %s"
              % (", ".join(["Experiment", "Image", "Relationship"])),
              self,
          )
  
      super(LabelName, self).test_valid(pipeline)
  
imports: from ._name import Name
  from ...._validation_error import ValidationError
label_desc: Use image node_id 2 for calling the LabelName obj's underlying member method code with example usage: obj.test_valid(pipeline) without return types