def METHOD_NAME(typ: str):
    typ = typ.replace("typing.", "")
    replacements = {
        "numpy.ndarray": "ndarray",
        "np.ndarray": "ndarray",
        "deeplake.core.sample.Sample": "Sample",
        "deeplake.Sample": "Sample",
    }
    return replacements.get(typ, typ)