parameters: (shape, target_shape)
return_statement: return True
docstring: Determines if shape can be broadcast to target_shape.
docstring_summary: Determines if shape can be broadcast to target_shape.
docstring_tokens: Determines if shape can be broadcast to target_shape .
function: def _check_can_broadcast_to(shape, target_shape):
      """Determines if shape can be broadcast to target_shape."""
      ndim = len(shape)
      ndim_target = len(target_shape)
      if ndim > ndim_target:
          return False
      for i, j in zip(reversed(shape), reversed(target_shape)):
          if i not in (1, j):
              return False
      return True
function_tokens: def _check_can_broadcast_to ( shape , target_shape ) : ndim = len ( shape ) ndim_target = len ( target_shape ) if ndim > ndim_target : return False for i , j in zip ( reversed ( shape ) , reversed ( target_shape ) ) : if i not in ( 1 , j ) : return False return True