code: def check_forbidden_filename(filename,
                               destiny_os=os.name,
                               restricted_names=restricted_names):
      '''
      Get if given filename is forbidden for current OS or filesystem.
  
      :param filename:
      :param destiny_os: destination operative system
      :param fs_encoding: destination filesystem filename encoding
      :return: wether is forbidden on given OS (or filesystem) or not
      :rtype: bool
      '''
      return (
        filename in restricted_names or
        destiny_os == 'nt' and
        filename.split('.', 1)[0].upper() in nt_device_names
        f check_forbidden_filename(filename,
                               destiny_os=os.name,
                               restricted_names=restricted_names):
      '''
      Get if given filename is forbidden for current OS or filesystem.
  
      :param filename:
      :param destiny_os: destination operative system
      :param fs_encoding: destination filesystem filename encoding
      :return: wether is forbidden on given OS (or filesystem) or not
      :rtype: bool
      '''
      return (
        filename in restricted_names or
        destiny_os == 'nt' and
        filename.split('.', 1)[0].upper() in nt_device_names
        )
docs: Get if given filename is forbidden for current OS or filesystem.
  
      :param filename:
      :param destiny_os: destination operative system
      :param fs_encoding: destination filesystem filename encoding
      :return: wether is forbidden on given OS (or filesystem) or not
      :rtype: bool