def METHOD_NAME(self, cmd: Command, dry_run: Optional[bool] = None) -> bool:
    if dry_run is None:
        dry_run = self.dry_run
    print(cmd)
    result = True
    if not dry_run:
        code, stdout, stderr = invoke(cmd)
        result = code == 0
    print()
    return result