@classmethod
    def _credit_card_type(cls, card_type=None):
        if card_type is None:
            card_type = cls.random_element(cls.credit_card_types.keys())
        elif isinstance(card_type, CreditCard):
            return card_type
        return cls.credit_card_types[card_type]
Same as trim_to_sel, but intervening list items within the selected
dataset/ETHPy150Open joke2k/faker/faker/providers/credit_card/__init__.py/Provider._credit_card_type--crossover with--dataset/ETHPy150Open kivy/kivy/kivy/adapters/listadapter.py/ListAdapter.cut_to_sel