code: public static OpPredicate opNameMatches(final String regex){
          return new OpPredicate() {
              @Override
              public boolean matches(SameDiff sameDiff, DifferentialFunction function) {
                  return function.getOwnName().matches(regex);
              }
          };
      }
docs: Return true if the operation name (i.e., "add", "mul", etc - not the user specified name) matches the specified regular expression