code: def uses_password(self) -> bool:
      return bool(self.username and self.password)
  
imports: from typing import Optional
label_desc: Use image node_id 3 for calling the AuthCredentials obj's underlying member method code with example usage: obj.uses_password() and returns: bool