code: def test_logged_data_structure(model_path, basic_model):
      mlflow.sentence_transformers.save_model(
          model=basic_model, path=model_path
      )
  
      with model_path.joinpath("requirements.txt").open() as file:
          requirements = file.read()
      reqs = {req.split("==")[0] for req in requirements.split("\n")}
      expected_requirements = {
          "sentence-transformers",
          "torch",
          "transformers",
      }
      assert (
          reqs.intersection(expected_requirements)
          == expected_requirements
      )
      conda_env = yaml.safe_load(
          model_path.joinpath("conda.yaml").read_bytes()
      )
      assert {
          req.split("==")[0]
          for req in conda_env["dependencies"][2]["pip"]
      }.intersection(expected_requirements) == expected_requirements
  
      mlmodel = yaml.safe_load(
          model_path.joinpath("MLmodel").read_bytes()
      )
      assert (
          mlmodel["flavors"]["python_function"]["loader_module"]
          == "mlflow.sentence_transformers"
      )
      assert (
          mlmodel["flavors"]["python_function"]["data"]
          == mlflow.sentence_transformers.SENTENCE_TRANSFORMERS_DATA_PATH
      )
  
imports: import json
  import os
  from unittest import mock
  import numpy
  import pandas
  import pytest
  import yaml
  from pyspark.sql import SparkSession
  from pyspark.sql.types import ArrayType, DoubleType
  from sentence_transformers import SentenceTransformer
  import mlflow
  import mlflow.pyfunc.scoring_server
  import mlflow.sentence_transformers
  from mlflow import pyfunc
  from mlflow.exceptions import MlflowException
  from mlflow.models import Model, infer_signature
  from mlflow.models.utils import _read_example
  from mlflow.store.artifact.s3_artifact_repo import S3ArtifactRepository
  from mlflow.utils.environment import _mlflow_conda_env
  from tests.helper_functions import _assert_pip_requirements, _compare_logged_code_paths, _mlflow_major_version_string, assert_register_model_called_with_local_model_path, pyfunc_serve_and_score_model
label_desc: Use image node_id 6 for calling a global function with example usage: test_logged_data_structure(model_path, basic_model) without return types