code: def interface_options(
      score=False, raw=False, features=None, rgb=None, crop=True
  ):
      """Get an InterfaceOptions for the config."""
      interface = sc_pb.InterfaceOptions()
      interface.score = score
      interface.raw = raw
      if features:
          if isinstance(features, int):
              screen, minimap = features, features
          else:
              screen, minimap = features
          interface.feature_layer.width = 24
          interface.feature_layer.resolution.x = screen
          interface.feature_layer.resolution.y = screen
          interface.feature_layer.minimap_resolution.x = minimap
          interface.feature_layer.minimap_resolution.y = minimap
          interface.feature_layer.crop_to_playable_area = crop
      if rgb:
          if isinstance(rgb, int):
              screen, minimap = rgb, rgb
          else:
              screen, minimap = rgb
          interface.render.resolution.x = screen
          interface.render.resolution.y = screen
          interface.render.minimap_resolution.x = minimap
          interface.render.minimap_resolution.y = minimap
      return interface
  
file_path: pysc2/pysc2/bin/benchmark_observe.py
imports: import time
  from absl import app
  from absl import flags
  from pysc2 import maps
  from pysc2 import run_configs
  from pysc2.lib import replay
  from pysc2.lib import stopwatch
  from s2clientprotocol import common_pb2
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 1 for calling a global function with example usage: interface_options(score, raw, features, rgb, crop) and returns: interface