code: def main():
      # Render model sections
  
      environment = Environment(
          loader=BaseLoader,
          trim_blocks=True,
          lstrip_blocks=True,
      )
  
      section_template = environment.from_string(_SECTION_TEMPLATE)
      model_template = environment.from_string(_MODEL_TEMPLATE)
      card_model_template = environment.from_string(
          _CARD_MODEL_TEMPLATE
      )
  
      models = []
      for model_name in foz.list_zoo_models():
          source, content = _render_model_content(
              model_template, model_name
          )
          models.append((model_name, source, content))
  
      # Generate page content
  
      content = [_HEADER]
      content.append(_CARD_SECTION_START)
      for model_name in foz.list_zoo_models():
          card_content = _render_card_model_content(
              card_model_template, model_name
          )
          content.append(card_content)
  
      content.append(_CARD_SECTION_END)
      content.extend(
          _generate_section(section_template, models, "torch", "Torch")
      )
      content.extend(
          _generate_section(
              section_template, models, "tensorflow", "TensorFlow"
          )
      )
  
      # Write docs page
  
      docs_dir = "/".join(os.path.realpath(__file__).split("/")[:-2])
      outpath = os.path.join(
          docs_dir, "source/user_guide/model_zoo/models.rst"
      )
  
      print("Writing '%s'" % outpath)
      etau.write_file("\n".join(content), outpath)
  
file_path: fiftyone/docs/scripts/make_model_zoo_docs.py
imports: import logging
  import os
  import re
  from jinja2 import Environment, BaseLoader
  import eta.core.utils
  import fiftyone.zoo
label_desc: Use image node_id 5 for calling a global function with example usage: main() without return types