def _query_include_self(X, include_self):
 if include_self:
  query = X._fit_X
 else:
  query = None
 return query

def _query_include_self ( X , include_self ) : if include_self : query = X . _fit_X else : query = None return query
return the query based on include_self param .