code: def extract_meta_mpd(file):
      """
      Extracts metadata from a valid MPD(MPEG-DASH Manifest file)
      """
      adapts, reprs = check_valid_mpd(file)
      if reprs:
          metas = []
          for rep in reprs:
              meta = {}
              meta["mime_type"] = rep.mime_type
              if meta["mime_type"].startswith("audio"):
                  meta["audioSamplingRate"] = rep.audio_sampling_rate
              else:
                  meta["width"] = rep.width
                  meta["height"] = rep.height
                  meta["framerate"] = (
                      rep.frame_rate
                      if not (rep.frame_rate is None)
                      else adapts[0].frame_rate
                  )
              logger.debug("Found Meta: {}".format(meta))
              metas.append(meta)
          logger.debug("MetaData: {}".format(metas))
          return metas
      else:
          return []
  
imports: import os
  import cv2
  import queue
  import pytest
  import m3u8
  import logging
  import platform
  import tempfile
  from mpegdash.parser import MPEGDASHParser
  from vidgear.gears import CamGear, StreamGear
  from vidgear.gears.helper import logger_handler, validate_video
label_desc: Use image node_id 6 for calling a global function with example usage: extract_meta_mpd(file) and returns: metas, list