def METHOD_NAME(
    self,
    dtype=None,
    ndim=None,
    layout=None,
    readonly=None,
    addrspace=None,
    device=None,
    usm_type=None,
):
    if dtype is None:
        dtype = self.dtype
    if ndim is None:
        ndim = self.ndim
    if layout is None:
        layout = self.layout
    if readonly is None:
        readonly = not self.mutable
    if addrspace is None:
        addrspace = self.addrspace
    if device is None:
        device = self.device
    if usm_type is None:
        usm_type = self.usm_type
    return type(self)(
        dtype=dtype,
        ndim=ndim,
        layout=layout,
        usm_type=usm_type,
        device=device,
        readonly=readonly,
        aligned=self.aligned,
        addrspace=addrspace,
    )