code: def test_used_objs_push(tmp_dir, scm, dvc):
      stage = tmp_dir.dvc_gen("foo", "foo")[0]
      hash_info = stage.outs[0].hash_info
  
      stage.outs[0].can_push = True
      assert stage.get_used_objs(push=False) == {None: {hash_info}}
      assert stage.get_used_objs(push=True) == {None: {hash_info}}
  
      stage.outs[0].can_push = False
      assert stage.get_used_objs(push=False) == {None: {hash_info}}
      assert stage.get_used_objs(push=True) == {}
  
imports: import json
  import os
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_used_objs_push(tmp_dir, scm, dvc) without return types