code: def drop_programs(tokens, codec: Codec):
      """Drops program change events from a token sequence."""
      min_program_id, max_program_id = codec.event_type_range("program")
      return tokens[
          (tokens < min_program_id) | (tokens > max_program_id)
      ]
  
imports: import dataclasses
  import math
  import os
  from typing import Any, Callable, List, Mapping, MutableMapping, Optional, Sequence, Tuple, Union
  import numpy
  import torch
  import torch.nn.functional
  from ...utils import is_note_seq_available
  from .pipeline_spectrogram_diffusion import TARGET_FEATURE_LENGTH
label_desc: Use image node_id 1 for calling a global function with example usage: drop_programs(tokens, codec) and returns: tokens