code: def _render_model_content(template, model_name):
      zoo_model = foz.get_zoo_model(model_name)
  
      if "torch" in zoo_model.tags:
          source = "torch"
      elif any(t in zoo_model.tags for t in ("tf", "tf1", "tf2")):
          source = "tensorflow"
      else:
          source = "other"
  
      header_name = model_name
  
      if zoo_model.size_bytes is not None:
          size_str = etau.to_human_bytes_str(
              zoo_model.size_bytes, decimals=2
          )
          size_str = (
              size_str[:-2] + " " + size_str[-2:]
          )  # 123.45 MB, not 123.45MB
      else:
          size_str = None
  
      if "embeddings" in zoo_model.tags:
          exposes_embeddings = "yes"
      else:
          exposes_embeddings = "no"
  
      tags_str = ", ".join(zoo_model.tags)
  
      base_packages = zoo_model.requirements.packages
      if base_packages is not None:
          base_packages = ", ".join(base_packages)
  
      if zoo_model.supports_cpu:
          supports_cpu = "yes"
      else:
          supports_cpu = "no"
  
      cpu_packages = zoo_model.requirements.cpu_packages
      if cpu_packages is not None:
          cpu_packages = ", ".join(cpu_packages)
  
      if zoo_model.supports_gpu:
          supports_gpu = "yes"
      else:
          supports_gpu = "no"
  
      gpu_packages = zoo_model.requirements.gpu_packages
      if gpu_packages is not None:
          gpu_packages = ", ".join(gpu_packages)
  
      content = template.render(
          name=zoo_model.name,
          header_name=header_name,
          description=zoo_model.description,
          source=zoo_model.source,
          size=size_str,
          exposes_embeddings=exposes_embeddings,
          tags=tags_str,
          base_packages=base_packages,
          supports_cpu=supports_cpu,
          cpu_packages=cpu_packages,
          supports_gpu=supports_gpu,
          gpu_packages=gpu_packages,
      )
  
      return source, content
  
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 2 for calling a global function with example usage: _render_model_content(template, model_name) and returns: source,  content