code: def _apply_dvs_capability(capability_spec, capability_dict):
      '''
      Applies the values of the capability_dict dictionary to a DVS capability
      object (vim.vim.DVSCapability)
      '''
      if 'operation_supported' in capability_dict:
          capability_spec.dvsOperationSupported = \
                  capability_dict['operation_supported']
      if 'port_operation_supported' in capability_dict:
          capability_spec.dvPortOperationSupported = \
                  capability_dict['port_operation_supported']
      if 'portgroup_operation_supported' in capability_dict:
          capability_spec.dvPortGroupOperationSupported = \
                  capability_dict['portgroup_operation_supported'f _apply_dvs_capability(capability_spec, capability_dict):
      '''
      Applies the values of the capability_dict dictionary to a DVS capability
      object (vim.vim.DVSCapability)
      '''
      if 'operation_supported' in capability_dict:
          capability_spec.dvsOperationSupported = \
                  capability_dict['operation_supported']
      if 'port_operation_supported' in capability_dict:
          capability_spec.dvPortOperationSupported = \
                  capability_dict['port_operation_supported']
      if 'portgroup_operation_supported' in capability_dict:
          capability_spec.dvPortGroupOperationSupported = \
                  capability_dict['portgroup_operation_supported']
docs: Applies the values of the capability_dict dictionary to a DVS capability
      object (vim.vim.DVSCapability)