@classmethod
    def vf_mgmt_capability_supported(cls, vf_section, capability,
                                     subcapability=None):
        if not vf_section:
            return False
        if subcapability:
            regex = cls.SUB_CAPABILITY_REGEX % {"cap": capability,
                                                "subcap": subcapability}
        else:
            regex = cls.CAPABILITY_REGEX % capability
        pattern_match = re.search(regex, vf_section,
                                  re.DOTALL | re.MULTILINE)
        return pattern_match is not None
:type table_name: str
dataset/ETHPy150Open openstack/neutron/neutron/agent/linux/ip_link_support.py/IpLinkSupport.vf_mgmt_capability_supported--crossover with--dataset/ETHPy150Open boto/boto3/boto3/dynamodb/table.py/BatchWriter.__init__