class_docstr: Test get_media_uri_info function on an uri
class_docstr_tok: ["Test","get_media_uri_info","function","on","an","uri"]
code: def tearDown(self):
      uri = get_uri(self.source)
      uri_info = get_media_uri_info(uri)
      if self.test_exact_duration:
          self.assertEqual(self.source_duration, uri_info["duration"])
      else:
          self.assertAlmostEqual(
              self.source_duration, uri_info["duration"], places=0
          )
      self.assertEqual(
          self.expected_channels, uri_info["streams"][0]["channels"]
      )
      self.assertEqual(
          self.expected_samplerate, uri_info["streams"][0]["samplerate"]
      )
      self.assertEqual(
          self.expected_depth, uri_info["streams"][0]["depth"]
      )
  
imports: from __future__ import division
  import unittest
  from unit_timeside import TestRunner
  from timeside.plugins.decoder.utils import get_uri, get_media_uri_info, path2uri
  from timeside.core.tools.test_samples import samples
  import os.path
label_desc: Use image node_id 9 for calling the TestGetMediaInfo obj's underlying member method code with example usage: obj.tearDown() without return types