class_docstr: `ModelStep` for SageMaker Pipelines Workflows.
class_docstr_tok: ["`","ModelStep","`","for","SageMaker","Pipelines","Workflows","."]
docstr: Resolve vpc configs for repack model step
docstr_tok: ["Resolve","vpc","configs","for","repack","model","step"]
code: def _resolve_repack_model_step_vpc_configs(self):
      """Resolve vpc configs for repack model step"""
      # Note: the EstimatorBase constructor ensures that:
      # "When setting up custom VPC, both subnets and security_group_ids must be set"
      if self._repack_model_step_settings.get(
          "security_group_ids", None
      ) or self._repack_model_step_settings.get("subnets", None):
          security_group_ids = self._repack_model_step_settings.pop(
              "security_group_ids", None
          )
          subnets = self._repack_model_step_settings.pop(
              "subnets", None
          )
          return security_group_ids, subnets
  
      if self._model.vpc_config:
          security_group_ids = self._model.vpc_config.get(
              "SecurityGroupIds", None
          )
          subnets = self._model.vpc_config.get("Subnets", None)
          return security_group_ids, subnets
  
      return None, None
  
file_path: sagemaker-python-sdk/src/sagemaker/workflow/model_step.py
imports: from __future__ import absolute_import
  import logging
  from typing import Union, List, Dict, Optional
  from sagemaker import Model, PipelineModel, Session
  from sagemaker.workflow._utils import _RegisterModelStep, _RepackModelStep
  from sagemaker.workflow.pipeline_context import PipelineSession, _ModelStepArguments
  from sagemaker.workflow.retry import RetryPolicy, SageMakerJobStepRetryPolicy
  from sagemaker.workflow.step_collections import StepCollection
  from sagemaker.workflow.steps import Step, CreateModelStep
label_desc: Use image node_id 8 for calling the ModelStep obj's underlying member method code with example usage: obj._resolve_repack_model_step_vpc_configs() and returns: None,  None, security_group_ids,  subnets, security_group_ids,  subnets