code: def within_range(val, target, tolerance):
      return abs(val - target) / target < tolerance
  
file_path: DeepSpeed/tests/unit/profiling/flops_profiler/test_flops_profiler.py
imports: import torch
  import pytest
  import deepspeed
  from deepspeed.profiling.flops_profiler import get_model_profile
  from unit.simple_model import SimpleModel, random_dataloader
  from unit.common import DistributedTest
  from deepspeed.runtime.utils import required_torch_version
  from deepspeed.accelerator import get_accelerator
label_desc: Use image node_id 1 for calling a global function with example usage: within_range(val, target, tolerance) and returns: unknown