def __init__(self, pod_path, _pod, locale=None, _collection=None):
        self._locale_kwarg = locale
        utils.validate_name(pod_path)
        self.pod_path = pod_path
        self.basename = os.path.basename(pod_path)
        self.base, self.ext = os.path.splitext(self.basename)
        self.pod = _pod
        self.collection = _collection
        try:
            self.locale = _pod.normalize_locale(locale, default=self.default_locale)
        except IOError as exc:  # Document does not exist.
            if str(exc) in '[Errno 2] No such file or directory':
                self.locale = None
            else:
                raise
dataset/ETHPy150Open grow/grow/grow/pods/documents.py/Document.__init__/swapped operands of `in`