def METHOD_NAME():
    """Creates assets with believable capacity profile."""
    from numpy import ones
    from numpy.random import choice, randint
    from xarray import Dataset  # noqa
    from muse.utilities import avoid_repetitions
    result = Dataset()
    result["year"] = "year", range(2010, 2031)
    METHOD_NAME = set((randint(2010, 2020), choice(list("technology"))) for i in range(30))
    METHOD_NAME = list(METHOD_NAME)
    result["installed"] = "asset", [u[0] for u in METHOD_NAME]
    result["technology"] = "asset", [u[1] for u in METHOD_NAME]
    shape = len(result.year), len(result.asset)
    result["capacity"] = ("year", "asset"), ones(shape, dtype="int")
    result["maxyears"] = "asset", randint(2010, 2030, len(result.asset))
    result["capa"] = "asset", randint(1, 100, len(result.asset))
    result["capacity"] = result.capacity.where(result.year <= result.maxyears, 0)
    result["capacity"] *= result.capa
    result = result.drop_vars(("maxyears", "capa"))
    result = result.set_coords(("installed", "technology"))
    return result.sel(year=avoid_repetitions(result.capacity))