code: def is_nullable_list(val, vtype):
      
      return (isinstance(val, list) and
              any(isinstance(v, vtype) for v in val) and
              all((isinstance(v, vtype) or v is None) for v in val))
docs: Return True if list contains either values of type `vtype` or None.