code: def invoke_tabular_endpoint(
      self, data: pd.DataFrame
  ) -> Dict[str, Any]:
      return self._invoke_endpoint(
          body=data.to_csv(header=False, index=False).encode("utf-8"),
          content_type=ContentType.TEXT_CSV,
      )
  
imports: from __future__ import absolute_import
  import functools
  import json
  import uuid
  from typing import Any, Dict, List, Tuple
  import boto3
  import pandas
  import os
  from botocore.config import Config
  import pytest
  from tests.integ.sagemaker.jumpstart.constants import TEST_ASSETS_SPECS, TMP_DIRECTORY_PATH, TRAINING_DATASET_MODEL_DICT, ContentType
  from sagemaker.jumpstart.constants import JUMPSTART_DEFAULT_REGION_NAME
  from sagemaker.jumpstart.utils import get_jumpstart_content_bucket
  from sagemaker.session import Session
label_desc: Use image node_id 3 for calling the EndpointInvoker obj's underlying member method code with example usage: obj.invoke_tabular_endpoint(data) and returns: self