code: def parser_available(fpath):
      
      if isinstance(fpath, basestring):
          fname = fpath
      elif hasattr(fpath, 'open') and hasattr(fpath, 'name'):
          fname = fpath.name
      elif hasattr(fpath, 'readline') and hasattr(fpath, 'name'):
          fname = fpath.name
      else:
          raise ValueError(
              'fpath should be a str or file_like object: {}'.format(fpath))
  
      for parser in get_plugins('parsers').values():
          if fnmatch(fname, parser.file_regex):
              return True
  
      return False
docs: test if parser plugin available for fpath
  
      Examples
      --------
  
      >>> load_builtin_plugins('parsers')
      []
      >>> test_file = StringIO('{"a":[1,2,3.4]}')
      >>> test_file.name = 'test.json'
      >>> parser_available(test_file)
      True
      >>> test_file.name = 'test.other'
      >>> parser_available(test_file)
      False
  
      >>> unload_all_plugins()