Formats a name from Collection format

        Collections are of two name formats based on their actual URI
        representation in the REST service.

        1. For cases where the actual URI of a collection is singular, for
           example,

               /mgmt/tm/ltm/node

           The name of the collection, as exposed to the user, will be made
           plural. For example,

               mgmt.tm.ltm.nodes

        2. For cases where the actual URI of a collection is plural, for
           example,

               /mgmt/cm/shared/licensing/pools/

           The name of the collection, as exposed to the user, will remain
           plural, but will have an `_s` appended to it. For example,

               mgmt.cm.shared.licensing.pools_s

        This method is responsible for undoing the user provided plurality.
        It ensures that the URI that is being sent to the REST service is
        correctly plural, or plural plus.

        Returns:
            A string representation of the user formatted Collection with its
            plurality identifier removed appropriately.

def _format_collection_name(self):
        """Formats a name from Collection format

        Collections are of two name formats based on their actual URI
        representation in the REST service.

        1. For cases where the actual URI of a collection is singular, for
           example,

               /mgmt/tm/ltm/node

           The name of the collection, as exposed to the user, will be made
           plural. For example,

               mgmt.tm.ltm.nodes

        2. For cases where the actual URI of a collection is plural, for
           example,

               /mgmt/cm/shared/licensing/pools/

           The name of the collection, as exposed to the user, will remain
           plural, but will have an `_s` appended to it. For example,

               mgmt.cm.shared.licensing.pools_s

        This method is responsible for undoing the user provided plurality.
        It ensures that the URI that is being sent to the REST service is
        correctly plural, or plural plus.

        Returns:
            A string representation of the user formatted Collection with its
            plurality identifier removed appropriately.
        """
        base_uri = self._format_resource_name()
        if base_uri[-2:] == '_s':
            endind = 2
        else:
            endind = 1
        return base_uri[:-endind]