code: def make_lock_name(original_path, path_base_folder):
      
      def make_name(p):
          return p.replace(path_base_folder, "").replace(os.sep, "__")
      if isinstance(original_path, str):
          return make_name(original_path)
      elif isinstance(original_path, Sequence):
          return [make_name(p) for p in original_path]
      raise TypeError("Neither string nor other sequence type: {} ({})".
                      format(original_path, type(original_path)))
docs: Create name for lock file from an absolute path.
  
      The original path must be absolute, and it should point to a location
      within the location indicated by the base folder path provided. This is
      particularly useful for deleting a sample's output folder path from
      within the path of a target file to generate a lock file corresponding
      to the original target.
  
      :param str original_path: Full original filepath.
      :param str path_base_folder: Portion of original path to delete
      :return str: Name or perhaps relative (to the base folder path indicated)
          path to lock file