def get_profile(self):
    from django.contrib.auth.models import SiteProfileNotAvailable
    if not hasattr(self, '_profile_cache'):
      from django.conf import settings
      if not hasattr(settings, "AUTH_PROFILE_MODULE"):
        raise SiteProfileNotAvailable
      try:
        app_label, model_name = settings.AUTH_PROFILE_MODULE.split('.')
        model = models.get_model(app_label, model_name)
        self._profile_cache = model.all().filter("user =", self).get()
        if not self._profile_cache:
          raise model.DoesNotExist
      except (ImportError, ImproperlyConfigured):
        raise SiteProfileNotAvailable
    return self._profile_cache
:param all_channel: if True, normalize all channels together. else separately.
dataset/ETHPy150Open CollabQ/CollabQ/appengine_django/auth/models.py/User.get_profile--crossover with--dataset/ETHPy150Open ppwwyyxx/tensorpack/tensorpack/dataflow/imgaug/imgproc.py/MeanVarianceNormalize.__init__