def METHOD_NAME(value):
    """Check if the domain id is in the expected range"""
    try:
        value = int(value)
        if value < 0:
            raise argparse.ArgumentTypeError(
                f"The domain id ({value}) must be equal to or larger than 0"
            )
    except ValueError:
        raise argparse.ArgumentTypeError(
            f"The domain id ({value}) must be an integer"
        )
    return value