Returns true iff one of the labels contains substr.
(labels, substr)
| 76 | |
| 77 | |
| 78 | def InLabels(labels, substr): |
| 79 | """Returns true iff one of the labels contains substr.""" |
| 80 | return any(substr in x for x in labels) |
| 81 | |
| 82 | |
| 83 | def MetadataHasXlaRunOp(run_metadata): |
no test coverage detected