def user_login(self, email=None, password=None):
        email = six.moves.input("Email: ") if email is None else email
        password = getpass.getpass() if password is None else password

        login_data = {
            "method": "user.login",
            "params": {"email": email,
                       "pass": password}
        }
        # If the user/password match, the server respond will contain a
        #  session cookie that you can use to authenticate future requests.
        r = requests.post(
            self.base_api_urls["logic"],
            data=json.dumps(login_data),
        )
        if r.json()["result"] not in ["OK"]:
            raise AuthenticationError("Could not authenticate.\n{}"
                                      .format(r.json()))
        self.cookies = r.cookies
Return random value for SlugField
dataset/ETHPy150Open hfaran/piazza-api/piazza_api/rpc.py/PiazzaRPC.user_login--crossover with--dataset/ETHPy150Open kmmbvnr/django-any/django_any/forms.py/slug_field_data