code: def _safe_scaler(algo, ar):
      if algo == "none":
          return ar
      scaled_ar = ScaledFScore._get_scaler_function(algo)(ar)
      if np.isnan(scaled_ar).any():
          return ScaledFScore._get_scaler_function("percentile")(
              scaled_ar
          )
      return scaled_ar
  
imports: from abc import ABC, abstractmethod
  import numpy
  import pandas
  from scipy.stats import norm, rankdata
  from scattertext.Common import DEFAULT_SCALER_ALGO, DEFAULT_BETA
label_desc: Use image node_id 5 for calling the ScaledFScore obj's underlying member method code with example usage: obj._safe_scaler(algo, ar) and returns: scaled_ar, ar, ScaledFScore