code: def round_sig(num, sig: int):
      """
      Round num to the input number of significant figures.
  
      From https://stackoverflow.com/a/3413529.
      """
      return round(num, sig - int(floor(log10(abs(num)))) - 1)
  
imports: import random
  from abc import ABC, abstractmethod
  from math import floor, log10
  from typing import Dict
  import numpy
  import pytest
  import torch
  from pytest_regressions.data_regression import DataRegressionFixture
  import parlai.utils.testing
  from parlai.core.opt import Opt
  from parlai.core.teachers import register_teacher, DialogTeacher
  from parlai.utils.data import DatatypeHelper
  from parlai.zoo.bart.build import download
  from parlai.zoo.blender.blender_90M import download
label_desc: Use image node_id 1 for calling a global function with example usage: round_sig(num, sig) and returns: round