def METHOD_NAME(typ):
    if typ == "Byte":
        return gdal.GDT_Byte
    elif typ == "Int16":
        return gdal.GDT_Int16
    elif typ == "UInt16":
        return gdal.GDT_UInt16
    elif typ == "Int32":
        return gdal.GDT_Int32
    elif typ == "UInt32":
        return gdal.GDT_UInt32
    elif typ == "Float32":
        return gdal.GDT_Float32
    elif typ == "Float64":
        return gdal.GDT_Float64
    elif typ == "CInt16":
        return gdal.GDT_CInt16
    elif typ == "CInt32":
        return gdal.GDT_CInt32
    elif typ == "CFloat32":
        return gdal.GDT_CFloat32
    elif typ == "CFloat64":
        return gdal.GDT_CFloat64
    return gdal.GDT_Byte