code: def get_base_frame_type(frame_name, is_frame_like, example=None):
      """Handles type check for input example for DataFrame/Series/Index initialization.
      Returns the base type of streaming objects if type checks pass."""
      if example is None:
          raise TypeError("Missing required argument:'example'")
      if is_frame_like is is_dataframe_like and not is_frame_like(
          example
      ):
          import pandas as pd
  
          example = pd.DataFrame(example)
  
      elif not is_frame_like(example):
          msg = "Streaming {0} expects an example of {0} like objects. Got: {1}.".format(
              frame_name, example
          )
          raise TypeError(msg)
      return type(example)
  
imports: from __future__ import division, print_function
  import inspect
  import sys
label_desc: Use image node_id 4 for calling a global function with example usage: get_base_frame_type(frame_name, is_frame_like, example) and returns: type