message: [NFC] Just make pass state check consistent and always rely on `GetPassState` method. This helps to avoid the divergence of these checks in the future.
diff: @@ -33,7 +33,8 @@ using Graph = ::tensorflow::Graph;
  Status MlirGraphOptimizationPass::Run(const ConfigProto& config_proto,
  ModuleOp module, const Graph& graph) {
  - if (!config_proto.experimental().enable_mlir_graph_optimization()) {
  + if (GetPassState(/*device_set=*/nullptr, config_proto, graph) ==
  + ::tensorflow::MlirOptimizationPassState::Disabled) {
  VLOG(1) << "Skipping MLIR Graph Optimization Pass"
  << ", session flag not enabled";
  return Status::OK();
  