def METHOD_NAME(graph_match):
  """Convert to a OpMatcher instance."""
  if graph_match is None:
    return None
  if not isinstance(graph_match, OpMatcher):
    graph_match = OpMatcher(graph_match)
  return graph_match