def METHOD_NAME():
    """
    The cpuset_cpus as a string.
    Returns
    -------
        The setting COMPONENTS_CPUSET_CPUS if this is set to a
        none-empty string. Otherwise, works out the available cpu
        from the os.
    """
    if settings.COMPONENTS_CPUSET_CPUS:
        return settings.COMPONENTS_CPUSET_CPUS
    else:
        # Get the cpu count, note that this is setting up the container
        # so that it can use all of the CPUs on the system. To limit
        # the containers execution set COMPONENTS_CPUSET_CPUS
        # externally.
        cpus = os.cpu_count()
        if cpus in [None, 1]:
            return "0"
        else:
            return f"0-{cpus - 1}"