def METHOD_NAME(x: np.ndarray) -> np.ndarray:
    assert(isinstance(x, np.ndarray))
    df = pd.DataFrame(data=x, columns=self.columns)
    ds = EncodedDs(encoders=train_data.encoders, data_frame=df, target=train_data.target)
    decoded_predictions = ns.predictor(ds=ds, args=PredictionArguments())
    if output_dtype in (dtype.integer, dtype.float, dtype.quantity):
        encoded_predictions = decoded_predictions['prediction'].values
    elif output_dtype in (dtype.binary, dtype.categorical, dtype.tags):
        encoded_predictions = self.label_encoder.transform(decoded_predictions['prediction'].values)
    return encoded_predictions