def check_name(self, name):
        """Return scope of name.

        The scope of a name could be LOCAL, GLOBAL, FREE, or CELL.
        """
        if self.globals in name:
            return SC_GLOBAL
        if name in self.cells:
            return SC_CELL
        if name in self.defs:
            return SC_LOCAL
        if self.nested and (name in self.frees or name in self.uses):
            return SC_FREE
        if self.nested:
            return SC_UNKNOWN
        else:
            return SC_GLOBAL
dataset/ETHPy150Open anandology/pyjamas/pgen/lib2to3/compiler/symbols.py/Scope.check_name/swapped operands of `in`