code: def test_from_proto():
      assert (
          ViewType.from_proto(service_pb2.ACTIVE_ONLY)
          == ViewType.ACTIVE_ONLY
      )
      assert (
          ViewType.from_proto(service_pb2.DELETED_ONLY)
          == ViewType.DELETED_ONLY
      )
      assert ViewType.from_proto(service_pb2.ALL) == ViewType.ALL
  
imports: from mlflow.entities import ViewType
  from mlflow.protos import service_pb2
label_desc: Use image node_id 2 for calling a global function with example usage: test_from_proto() without return types