code: def test_profile_with_options(self):
      logdir = self.get_temp_dir()
      options = profiler.ProfilerOptions(
          host_tracer_level=3, python_tracer_level=1
      )
      profiler.start(logdir, options)
      with trace.Trace("three_times_five"):
          three = constant_op.constant(3)
          five = constant_op.constant(5)
          product = three * five
      self.assertAllEqual(15, product)
  
      profiler.stop()
      file_list = gfile.ListDirectory(logdir)
      self.assertEqual(len(file_list), 1)
  
file_path: tensorflow-upstream/tensorflow/python/profiler/profiler_v2_test.py
imports: import os
  import socket
  from tensorflow.python.eager import test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import gfile
  from tensorflow.python.profiler import profiler_v2
  from tensorflow.python.profiler import trace
label_desc: Use image node_id 3 for calling the ProfilerTest obj's underlying member method code with example usage: obj.test_profile_with_options() without return types