code: def read_avro(file_path_or_buffer, schema=None, **kwargs):
      
      if isinstance(file_path_or_buffer, six.string_types):
          with open(file_path_or_buffer, 'rb') as f:
              return __file_to_dataframe(f, schema, **kwargs)
      else:
          return __file_to_dataframe(file_path_or_buffer, schema, **kwargs)
docs: Avro file reader.
  
      Args:
          file_path_or_buffer: Input file path or file-like object.
          schema: Avro schema.
          **kwargs: Keyword argument to pandas.DataFrame.from_records.
  
      Returns:
          Class of pd.DataFrame.