code: def _flatdim_box_multibinary(space: Union[Box, MultiBinary]) -> int:
      return reduce(op.mul, space.shape, 1)
  
imports: import operator
  from collections import OrderedDict
  from functools import reduce, singledispatch
  from typing import Dict
  from typing import TypeVar, Union, cast
  import numpy
  from gym.spaces import Box, Dict, Discrete, Graph, GraphInstance, MultiBinary, MultiDiscrete, Sequence, Space, Text, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: _flatdim_box_multibinary(space) and returns: reduce