code: def _get_mps_st_net(
      input_image_shape, batch_size, output_size, config, weights={}
  ):
      """
      Initializes an MpsGraphAPI for style transfer.
      """
      c_in, h_in, w_in = input_image_shape
  
      c_out = output_size[0]
      h_out = h_in
      w_out = w_in
  
      network = _MpsStyleGraphAPI(
          batch_size,
          c_in,
          h_in,
          w_in,
          c_out,
          h_out,
          w_out,
          weights=weights,
          config=config,
      )
      return network
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  import turicreate.toolkits._internal_utils
  from turicreate.toolkits import _coreml_utils
  from turicreate.toolkits._internal_utils import _raise_error_if_not_sframe
  from turicreate._deps.minimal_package import _minimal_package_import_check
  from ..None import _pre_trained_models
  from turicreate.toolkits._model import Model
  from turicreate.toolkits._main import ToolkitError
  import turicreate
  from .._mps_utils import MpsStyleGraphAPI
label_desc: Use image node_id 1 for calling a global function with example usage: _get_mps_st_net(input_image_shape, batch_size, output_size, config, weights) and returns: network