code: def test_create_segment(self, mock_run_cli):
      params = {
          "generator_config_file": "a",
          "data_dir": "b",
          "segment_format": "c",
          "out_dir": "d",
          "overwrite": True,
          "table_name": "e",
          "segment_name": "f",
          "time_column_name": "g",
          "schema_file": "h",
          "reader_config_file": "i",
          "enable_star_tree_index": False,
          "star_tree_index_spec_file": "j",
          "hll_size": 9,
          "hll_columns": "k",
          "hll_suffix": "l",
          "num_threads": 8,
          "post_creation_verification": True,
          "retry": 7,
      }
  
      self.db_hook.create_segment(**params)
  
      mock_run_cli.assert_called_once_with(
          [
              "CreateSegment",
              "-generatorConfigFile",
              params["generator_config_file"],
              "-dataDir",
              params["data_dir"],
              "-format",
              params["segment_format"],
              "-outDir",
              params["out_dir"],
              "-overwrite",
              params["overwrite"],
              "-tableName",
              params["table_name"],
              "-segmentName",
              params["segment_name"],
              "-timeColumnName",
              params["time_column_name"],
              "-schemaFile",
              params["schema_file"],
              "-readerConfigFile",
              params["reader_config_file"],
              "-starTreeIndexSpecFile",
              params["star_tree_index_spec_file"],
              "-hllSize",
              params["hll_size"],
              "-hllColumns",
              params["hll_columns"],
              "-hllSuffix",
              params["hll_suffix"],
              "-numThreads",
              params["num_threads"],
              "-postCreationVerification",
              params["post_creation_verification"],
              "-retry",
              params["retry"],
          ]
      )
  
imports: from __future__ import annotations
  import os
  import subprocess
  from io import BytesIO
  from unittest import mock
  import pytest
  from airflow.exceptions import AirflowException
  from airflow.providers.apache.pinot.hooks.pinot import PinotAdminHook, PinotDbApiHook
label_desc: Use image node_id 4 for calling the TestPinotAdminHook obj's underlying member method code with example usage: obj.test_create_segment(mock_run_cli) without return types