Creates collection

            :param name Collection name
            :param database Database name in which it is created
            :param type Collection type (2 = document / 3 = edge)

            :returns Collection

def create(cls, name, database=SYSTEM_DATABASE, type=2):
        """
            Creates collection

            :param name Collection name
            :param database Database name in which it is created
            :param type Collection type (2 = document / 3 = edge)

            :returns Collection
        """

        client = Client.instance()
        api = client.api

        if client.database != database:
            database = client.database

        collection_data = {
            'name': name,
            'type': type,
        }

        data = api.collection.post(data=collection_data)

        collection = Collection(
            name=name,
            database=database,
            api_resource=api.collection,
            api=api,
            kwargs=data
        )

        return collection