class_docstr: A boto based Active Record class based on convention of CRUD operations.
docstr: Invoke a SageMaker API.
docstr_tok: ["Invoke","a","SageMaker","API","."]
code: def _invoke_api(self, boto_method, boto_method_members):
      """Invoke a SageMaker API."""
      api_values = {
          k: v
          for k, v in vars(self).items()
          if k in boto_method_members
      }
      api_kwargs = self.to_boto(api_values)
      api_method = getattr(
          self.sagemaker_session.sagemaker_client, boto_method
      )
      api_boto_response = api_method(**api_kwargs)
      return self.with_boto(api_boto_response)
  
imports: from __future__ import absolute_import
  from sagemaker.apiutils import _boto_functions, _utils
  from sagemaker.utils import format_tags
label_desc: Use image node_id 7 for calling the Record obj's underlying member method code with example usage: obj._invoke_api(boto_method, boto_method_members) and returns: self