code: def test_tb_invalid_presigned_kwargs(mock_init):
      mock_init.return_value = None
      tb_app = TensorBoardApp(TEST_REGION)
      tb_app.region = TEST_REGION
      tb_app._domain_id = None
      tb_app._user_profile_name = None
      tb_app._in_studio_env = False
      tb_app._sagemaker_client = boto3.client(
          "sagemaker", region_name=TEST_REGION
      )
  
      with pytest.raises(botocore.exceptions.ParamValidationError):
          invalid_kwargs = {"fake-parameter": True}
          tb_app.get_app_url(
              create_presigned_domain_url=True,
              domain_id=TEST_DOMAIN,
              user_profile_name=TEST_USER_PROFILE,
              open_in_default_web_browser=False,
              optional_create_presigned_url_kwargs=invalid_kwargs,
          )
  
imports: from __future__ import absolute_import
  import json
  from unittest.mock import patch, Mock, mock_open, PropertyMock
  import boto3
  import botocore
  import pytest
  from sagemaker.interactive_apps.tensorboard import TensorBoardApp
label_desc: Use image node_id 20 for calling a global function with example usage: test_tb_invalid_presigned_kwargs(mock_init) without return types