code: def check_not_nan(self, sig, name):
      # print("check_not_nan");
      if np.isnan(sig).any() or np.isinf(sig).any():
          logger = tsutil.get_pyaf_logger()
          logger.error("TREND_RESIDUE_WITH_NAN_IN_SIGNAL" + str(sig))
          raise tsutil.Internal_PyAF_Error(
              "INVALID_COLUMN _FOR_TREND_RESIDUE ['" + name + "'"
          )
      pass
  
imports: import pandas
  import numpy
  from .None import Time
  from .None import Perf
  from .None import Plots
  from .None import Utils
  import sklearn
  import sklearn.preprocessing
  import sklearn.linear_model
  from sklearn.feature_selection import RFE
  from sklearn.linear_model import LinearRegression
label_desc: Use image node_id 2 for calling the cAbstractTrend obj's underlying member method code with example usage: obj.check_not_nan(sig, name) without return types