code: def test_init_with_all_optionals():
      shap_baseline_config = ClarifyShapBaselineConfig(
          mime_type=OPTIONAL_MIME_TYPE,
          # the config won't take shap_baseline and shap_baseline_uri both but we have both
          # here for testing purpose
          shap_baseline=SHAP_BASELINE,
          shap_baseline_uri=SHAP_BASELINE_PATH,
      )
      test_config = ClarifyTextConfig(
          granularity=GRANULARITY, language=LANGUAGE
      )
      shap_config = ClarifyShapConfig(
          shap_baseline_config=shap_baseline_config,
          number_of_samples=OPTIONAL_NUM_OF_SAMPLES,
          seed=OPTIONAL_SEED,
          use_logit=OPTIONAL_USE_LOGIT,
          text_config=test_config,
      )
      inference_config = ClarifyInferenceConfig(
          content_template=OPTIONAL_CONTENT_TEMPLATE,
          feature_headers=OPTIONAL_FEATURE_HEADERS,
          features_attribute=OPTIONAL_FEATURE_ATTRIBUTION,
          feature_types=OPTIONAL_FEATURE_TYPES,
          label_attribute=OPTIONAL_LABEL_ATTRIBUTE,
          label_headers=OPTIONAL_LABEL_HEADERS,
          label_index=OPTIONAL_LABEL_INDEX,
          max_payload_in_mb=OPTIONAL_MAX_PAYLOAD_IN_MB,
          max_record_count=OPTIONAL_MAX_RECORD_COUNT,
          probability_attribute=OPTIONAL_PROBABILITY_ATTRIBUTE,
          probability_index=OPTIONAL_PROBABILITY_INDEX,
      )
      clarify_explainer_config = ClarifyExplainerConfig(
          shap_config=shap_config,
          inference_config=inference_config,
          enable_explanations=OPTIONAL_ENABLE_EXPLAINABITIONS,
      )
      explainer_config = ExplainerConfig(
          clarify_explainer_config=clarify_explainer_config
      )
      assert (
          explainer_config.clarify_explainer_config._to_request_dict()
          == CLARIFY_EXPLAINER_CONFIG_DICT_WITH_ALL_OPTIONAL
      )
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_init_with_all_optionals() without return types