code: def make_extra_packages_tf_ranking():
      # Packages needed for tf-ranking which is used in tfx/examples/ranking.
      return [
          "tensorflow-ranking>=0.5,<0.6",
          "struct2tensor"
          + select_constraint(
              default=">=0.45,<0.46",
              nightly=">=0.46.0.dev",
              git_master="@git+https://github.com/google/struct2tensor@master",
          ),
      ]
  
file_path: tfx/tfx/dependencies.py
imports: import os
label_desc: Use image node_id 10 for calling a global function with example usage: make_extra_packages_tf_ranking() and returns: list