code: def is_ioinfo(obj, keys=None):
      
      if keys is None:
          keys = anyconfig.globals.IOI_KEYS
  
      if isinstance(obj, tuple) and getattr(obj, "_asdict", False):
          return all(k in obj._asdict() for k in keys)
  
      return False
docs: :return: True if given 'obj' is a 'IOInfo' namedtuple object.
  
      >>> assert not is_ioinfo(1)
      >>> assert not is_ioinfo("aaa")
      >>> assert not is_ioinfo({})
      >>> assert not is_ioinfo(('a', 1, {}))
  
      >>> inp = anyconfig.globals.IOInfo("/etc/hosts", "path", "/etc/hosts",
      ...                                None, open)
      >>> assert is_ioinfo(inp)