code: def _create_sagemaker_model(self, *args):  # pylint: disable=unused-argument
          
          if self.algorithm_arn:
              # When ModelPackage is created using an algorithm_arn we need to first
              # create a ModelPackage. If we had already created one then its fine to re-use it.
              if self._created_model_package_name is None:
                  model_package_name = self._create_sagemaker_model_package()
                  self.sagemaker_session.wait_for_model_package(model_package_name)
                  self._created_model_package_name = model_package_name
              model_package_name = self._created_model_package_name
          else:
              # When a ModelPackageArn is provided we just create the Model
              model_package_name = self.model_package_arn
  
          container_def = {
              'ModelPackageName': model_package_name,
          }
  
          if self.env != {}:
              container_def['Environment'] = self.env
  
          model_package_short_name = model_package_name.split('/')[-1]
          enable_network_isolation = self.enable_network_isolation()
          self.name = self.name or utils.name_from_base(model_package_short_name)
          self.sagemaker_session.create_model(self.name, self.role, container_def,
                                              vpc_config=self.vpc_config,
                                              enable_network_isolation=enable_network_isolation)
docs: Create a SageMaker Model Entity
  
          Args:
              *args: Arguments coming from the caller. This class
                  does not require any so they are ignored.