def create_default_network(context):
  """Creates a default VPC network resource.

  Args:
      context: the DM context object.

  Returns:
      A resource instantiating the network.py sub-template.
  """
  return [{
    'type': 'templates/network.py',
    'name': 'fc-network',
    'properties': {
      'resourceName': 'network',
      'name': 'network',
      'projectId': '$(ref.fc-project.projectId)',
      'autoCreateSubnetworks': True,
      # We pass the dependsOn list into the network template as a
      # parameter. Deployment Manager doesn't support dependsOn for
      # template-call nodes, so we can't have this resource itself depend on
      # the project-wide resources.
      'dependsOn': '$(ref.fc-project.resourceNames)',
    },
  }]