async def METHOD_NAME(controller, password, *args):
  if password is None:
    raise stem.connection.MissingPassword('no password')
  elif password == 'my_password':
    return None  # success
  else:
    raise ValueError('Unexpected authenticate_mock input: %s' % password)