code: def _fraction_to_tensor(fraction):
      ret = torch.zeros([2], dtype=torch.int32)
      ret[0] = fraction.numerator
      ret[1] = fraction.denominator
      return ret
  
imports: import collections
  import math
  import os
  from fractions import Fraction
  import numpy
  import pytest
  import torch
  import torchvision.io
  from common_utils import assert_equal
  from numpy.random import randint
  from pytest import approx
  from torchvision import set_video_backend
  from torchvision.io import _HAS_VIDEO_OPT
label_desc: Use image node_id 3 for calling a global function with example usage: _fraction_to_tensor(fraction) and returns: ret