def METHOD_NAME():
    hmd = ccl.halos.MassDef200m
    hmdb = ccl.halos.MassDef200c
    cm = ccl.halos.Concentration.create_instance("Duffy08", mass_def=hmd)
    translator = ccl.halos.mass_translator(mass_in=hmd, mass_out=hmdb,
                                           concentration=cm)
    for M in [1E12, [1E12, 2E12],
              np.array([1E12, 2E12])]:
        m = translator(COSMO, M, 1)
        assert np.all(np.isfinite(m))
        assert np.shape(m) == np.shape(M)