def METHOD_NAME(
    cls, v: Optional[Union[List[List[MatrixData]], str]], values: Any
) -> Optional[Union[List[List[MatrixData]], str]]:
    if v is None:
        v = values["command_context"].generator_matrix_constants.get_null_matrix()
        return v
    else:
        return validate_matrix(v, values)