code: def data_centered(self):
      if self.by_levels is None:
          output = self.data - self.mean
      else:
          output = self.data - self.mean[self.by]
      return output
  
imports: from functools import partial
  import numpy
  import formulae.terms
  from bambi.terms.base import BaseTerm, VALID_PRIORS
label_desc: Use image node_id 7 for calling the HSGPTerm obj's underlying member method code with example usage: obj.data_centered() and returns: output