code: def calculate_metrics(
      model_name,
      test_features_file,
      test_indices_file,
      train_features_file,
      train_indices_file,
  ):
      my_model_utk_cc_gender_similarity_input_data = {
          "model_name": model_name,
          "test_image_paths": "/path/to/casual_conversations/aligned_cc_mini_test_images.npy",
          "test_metadata": "/path/to/casual_conversations/test_mini_full_metadata.json",
          "train_image_paths": "https://dl.fbaipublicfiles.com/vissl/fairness/similarity_search/aligned_utk_train_images_gender.npy",
          "train_metadata": "https://dl.fbaipublicfiles.com/vissl/fairness/similarity_search/utk_dataset_metadata.json",
          "test_features": test_features_file,
          "test_indices": test_indices_file,
          "train_features": train_features_file,
          "train_indices": train_indices_file,
      }
      _ = generate_kNN_utk_to_cc_similarity_gender_analysis(
          my_model_utk_cc_gender_similarity_input_data,
          apply_l2_norm=True,
          k_values=K_VALUES,
      )
  
file_path: vissl/projects/fairness_indicators/similarity_search/inference_casual_conversations.py
imports: import numpy
  import pandas
  import torch
  from vissl.utils.io import load_file
label_desc: Use image node_id 10 for calling a global function with example usage: calculate_metrics(model_name, test_features_file, test_indices_file, train_features_file, train_indices_file) without return types