code: def test_calc_for_only_certain_samples():
      # Arrange
      data = pd.DataFrame(
          {
              "col1": [
                  "a",
                  "a",
                  "a",
                  "b",
                  "a",
                  "a",
                  "a",
                  "a",
                  "a",
                  "a",
                  "a",
                  "a",
                  "a",
                  "b",
              ],
              "col2": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1000],
          },
          index=list("abcdefghijklmn"),
      )
      # Act
      dist, _ = gower_distance.calculate_nearest_neighbors_distances(
          data,
          ["col1"],
          ["col2"],
          5,
          samples_to_calc_neighbors_for=data.loc[["c", "d", "n"]],
      )
      # Assert
      assert_that(dist[0], contains_exactly(0, 0, 0, 0, 0))
      assert_that(dist[1], contains_exactly(0, 0.5, 0.5, 0.5, 0.5))
      assert_that(dist[2], contains_exactly(0, 0.5, 1, 1, 1))
  
file_path: deepchecks/tests/utils/test_gower_distance.py
imports: import gower
  import numpy
  import pandas
  from hamcrest import assert_that, contains_exactly, equal_to, greater_than, has_item, has_length, less_than_or_equal_to
  from deepchecks.utils import gower_distance
label_desc: Use image node_id 2 for calling a global function with example usage: test_calc_for_only_certain_samples() without return types