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