def yaml(self):
        return yaml.dump(self.serialized, default_flow_style=False,
                         encoding=None)
def test_impl():
            A = StringArray(['ABC', 'BB', 'ADEF'])
            df = pd.DataFrame({'A': A})
            B = df.A.str.contains('AB*', regex=True)
            return B.sum()