class_docstr: Enum to filter requested experiment types.
class_docstr_tok: ["Enum","to","filter","requested","experiment","types","."]
code: def to_string(cls, view_type):
      if view_type not in cls._VIEW_TO_STRING:
          raise Exception(
              f"Could not get valid view type corresponding to string {view_type}. "
              f"Valid view types are {list(cls._VIEW_TO_STRING.keys())}"
          )
      return cls._VIEW_TO_STRING[view_type]
  
imports: from mlflow.protos import service_pb2
label_desc: Use image node_id 2 for calling the ViewType obj's underlying member method code with example usage: obj.to_string(cls, view_type) and returns: cls